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); } }