mirror of
https://github.com/Radarr/Radarr
synced 2025-02-24 23:23:21 +00:00
Fixed error when downloading a movie.
This commit is contained in:
parent
79307d3c25
commit
499e46e10a
2 changed files with 28 additions and 24 deletions
|
@ -92,6 +92,10 @@ private IEnumerable<DownloadDecision> GetMovieDecisions(List<ReleaseInfo> report
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_logger.Trace("{0} could not be parsed :(.", report.Title);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -426,7 +426,7 @@ private Movie GetMovie(ParsedMovieInfo parsedMovieInfo, string imdbId, SearchCri
|
||||||
movie = _movieService.FindByImdbId(imdbId);
|
movie = _movieService.FindByImdbId(imdbId);
|
||||||
|
|
||||||
//Should fix practically all problems, where indexer is shite at adding correct imdbids to movies.
|
//Should fix practically all problems, where indexer is shite at adding correct imdbids to movies.
|
||||||
if (parsedMovieInfo.Year > 1800 && parsedMovieInfo.Year != movie.Year)
|
if (movie != null && parsedMovieInfo.Year > 1800 && parsedMovieInfo.Year != movie.Year)
|
||||||
{
|
{
|
||||||
movie = null;
|
movie = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue