mirror of https://github.com/Radarr/Radarr
parent
e3fb000226
commit
43d6b404f5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue