Fixed: Same movie different year gets imported incorrectly

pull/5309/head
Qstick 4 years ago
parent d5addfa12f
commit 0e5f43e139

@ -213,12 +213,16 @@ namespace NzbDrone.Core.Parser
return true; return true;
} }
// Only default to not using year when one is parsed if only one movie candidate exists
if (candidates.Count == 1)
{
movieByTitleAndOrYear = _movieService.FindByTitle(parsedMovieInfo.MovieTitle, null, arabicTitle, romanTitle, candidates); movieByTitleAndOrYear = _movieService.FindByTitle(parsedMovieInfo.MovieTitle, null, arabicTitle, romanTitle, candidates);
if (movieByTitleAndOrYear != null) if (movieByTitleAndOrYear != null)
{ {
result = new MappingResult { Movie = movieByTitleAndOrYear, MappingResultType = MappingResultType.WrongYear }; result = new MappingResult { Movie = movieByTitleAndOrYear, MappingResultType = MappingResultType.WrongYear };
return false; return false;
} }
}
result = new MappingResult { Movie = movieByTitleAndOrYear, MappingResultType = MappingResultType.TitleNotFound }; result = new MappingResult { Movie = movieByTitleAndOrYear, MappingResultType = MappingResultType.TitleNotFound };
return false; return false;

Loading…
Cancel
Save