Fixed: Don't automatic import if year mismatch

Fixes #3006
This commit is contained in:
Qstick 2020-08-04 23:17:17 -04:00
parent e3fb000226
commit 43d6b404f5
1 changed files with 3 additions and 5 deletions

View File

@ -114,14 +114,12 @@ namespace NzbDrone.Core.Parser
return _movieService.FindByTitle(title);
}
var movie = _movieService.FindByTitle(parsedMovieInfo.MovieTitle, parsedMovieInfo.Year);
if (movie == null)
if (TryGetMovieByTitleAndOrYear(parsedMovieInfo, out var result) && result.MappingResultType == MappingResultType.Success)
{
movie = _movieService.FindByTitle(parsedMovieInfo.MovieTitle.Replace("DC", "").Trim());
return result.Movie;
}
return movie;
return null;
}
public MappingResult Map(ParsedMovieInfo parsedMovieInfo, string imdbId, SearchCriteriaBase searchCriteria = null)