Catching HTTP Errors when adding movies from a list.

pull/2/head
Leonardo Galli 8 years ago
parent cb596488f2
commit b4bb8875d3

@ -728,6 +728,8 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
} }
public Movie MapMovieToTmdbMovie(Movie movie) public Movie MapMovieToTmdbMovie(Movie movie)
{
try
{ {
Movie newMovie = movie; Movie newMovie = movie;
if (movie.TmdbId > 0) if (movie.TmdbId > 0)
@ -763,5 +765,11 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
return newMovie; return newMovie;
} }
catch (Exception ex)
{
_logger.Warn(ex, "Couldn't map movie {0} to a movie on The Movie DB. It will not be added :(", movie.Title);
return null;
}
}
} }
} }

Loading…
Cancel
Save