From 8f79563cf0cc258a9a7b051a34ce2637731df618 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Tue, 21 Mar 2017 18:51:58 +0100 Subject: [PATCH] This should fix all imdbid problems with indexers. --- src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs | 2 +- src/NzbDrone.Core/Parser/ParsingService.cs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs index 4a1bc3aba..ee3b00602 100644 --- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs +++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs @@ -75,7 +75,7 @@ namespace NzbDrone.Core.DecisionEngine if (remoteMovie.Movie == null) { - decision = new DownloadDecision(remoteMovie, new Rejection("Unknown movie. Cannot parse release name.")); + decision = new DownloadDecision(remoteMovie, new Rejection("Unknown movie. Movie found does not match wanted movie.")); } else { diff --git a/src/NzbDrone.Core/Parser/ParsingService.cs b/src/NzbDrone.Core/Parser/ParsingService.cs index 52db77468..c034722d7 100644 --- a/src/NzbDrone.Core/Parser/ParsingService.cs +++ b/src/NzbDrone.Core/Parser/ParsingService.cs @@ -403,7 +403,7 @@ namespace NzbDrone.Core.Parser if (searchCriteria == null) { - if (parsedMovieInfo.Year > 1900) + if (parsedMovieInfo.Year > 1800) { movie = _movieService.FindByTitle(parsedMovieInfo.MovieTitle, parsedMovieInfo.Year); } @@ -424,6 +424,12 @@ namespace NzbDrone.Core.Parser if (movie == null && imdbId.IsNotNullOrWhiteSpace()) { movie = _movieService.FindByImdbId(imdbId); + + //Should fix practically all problems, where indexer is shite at adding correct imdbids to movies. + if (parsedMovieInfo.Year > 1800 && parsedMovieInfo.Year != movie.Year) + { + movie = null; + } } if (movie == null)