From 856485c478ec96df779b91752f5ce20469143f2a Mon Sep 17 00:00:00 2001 From: realzombee <209545148+realzombee@users.noreply.github.com> Date: Mon, 7 Sep 2026 20:20:33 +0100 Subject: [PATCH] fix: Re-order parsing logic to first match by title instead of ID --- src/NzbDrone.Core/Parser/ParsingService.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/NzbDrone.Core/Parser/ParsingService.cs b/src/NzbDrone.Core/Parser/ParsingService.cs index cd406d50c7f..fbd8ede7ac1 100644 --- a/src/NzbDrone.Core/Parser/ParsingService.cs +++ b/src/NzbDrone.Core/Parser/ParsingService.cs @@ -128,25 +128,25 @@ private FindMovieResult FindMovie(ParsedMovieInfo parsedMovieInfo, string imdbId { FindMovieResult result = null; - if (!string.IsNullOrWhiteSpace(imdbId) && imdbId != "0") + if (searchCriteria != null) { - result = TryGetMovieByImDbId(parsedMovieInfo, imdbId); + result = TryGetMovieBySearchCriteria(parsedMovieInfo, imdbId, tmdbId, searchCriteria); } - - if (result == null && tmdbId > 0) + else { - result = TryGetMovieByTmdbId(parsedMovieInfo, tmdbId); + result = TryGetMovieByTitleAndOrYear(parsedMovieInfo); } if (result == null) { - if (searchCriteria != null) + if (!string.IsNullOrWhiteSpace(imdbId) && imdbId != "0") { - result = TryGetMovieBySearchCriteria(parsedMovieInfo, imdbId, tmdbId, searchCriteria); + result = TryGetMovieByImDbId(parsedMovieInfo, imdbId); } - else + + if (result == null && tmdbId > 0) { - result = TryGetMovieByTitleAndOrYear(parsedMovieInfo); + result = TryGetMovieByTmdbId(parsedMovieInfo, tmdbId); } }