mirror of
https://github.com/Radarr/Radarr
synced 2025-01-01 04:45:35 +00:00
Catching HTTP Errors when adding movies from a list.
This commit is contained in:
parent
cb596488f2
commit
b4bb8875d3
1 changed files with 38 additions and 30 deletions
|
@ -728,6 +728,8 @@ private static MediaCoverTypes MapCoverType(string coverType)
|
|||
}
|
||||
|
||||
public Movie MapMovieToTmdbMovie(Movie movie)
|
||||
{
|
||||
try
|
||||
{
|
||||
Movie newMovie = movie;
|
||||
if (movie.TmdbId > 0)
|
||||
|
@ -763,5 +765,11 @@ public Movie MapMovieToTmdbMovie(Movie movie)
|
|||
|
||||
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…
Reference in a new issue