mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
parent
e3fb000226
commit
43d6b404f5
@ -114,14 +114,12 @@ public Movie GetMovie(string title)
|
||||
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
Block a user