From a0b80ad41aa922d518399a0e9e5cc1ade7a23e7c Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 24 Jan 2017 14:17:35 -0500 Subject: [PATCH] Add year to search (#425) #417 --- src/NzbDrone.Core/Parser/ParsingService.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Parser/ParsingService.cs b/src/NzbDrone.Core/Parser/ParsingService.cs index 9df110a88..2de0d0648 100644 --- a/src/NzbDrone.Core/Parser/ParsingService.cs +++ b/src/NzbDrone.Core/Parser/ParsingService.cs @@ -396,9 +396,15 @@ namespace NzbDrone.Core.Parser if (searchCriteria == null) { - - movie = _movieService.FindByTitle(parsedEpisodeInfo.MovieTitle); //Todo: same as above! - + if (parsedEpisodeInfo.Year > 1900) + { + movie = _movieService.FindByTitle(parsedEpisodeInfo.MovieTitle, parsedEpisodeInfo.Year); + //Todo: same as above! + } + else + { + movie = _movieService.FindByTitle(parsedEpisodeInfo.MovieTitle); //Todo: same as above! + } return movie; }