mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Log path when import fails for movie import
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
a070279993
commit
a7a1d48e0d
@ -59,7 +59,8 @@ public List<Movie> AddMovies(List<Movie> newMovies, bool ignoreErrors = false)
|
||||
|
||||
foreach (var m in newMovies)
|
||||
{
|
||||
// TODO: Verify if adding skyhook data will be slow
|
||||
_logger.Info("Adding Movie {0} Path: [{1}]", m, m.Path);
|
||||
|
||||
try
|
||||
{
|
||||
var movie = AddSkyhookData(m);
|
||||
@ -91,11 +92,11 @@ private Movie AddSkyhookData(Movie newMovie)
|
||||
}
|
||||
catch (MovieNotFoundException)
|
||||
{
|
||||
_logger.Error("TmdbId {0} was not found, it may have been removed from TMDb.", newMovie.TmdbId);
|
||||
_logger.Error("TmdbId {0} was not found, it may have been removed from TMDb. Path: {1}", newMovie.TmdbId, newMovie.Path);
|
||||
|
||||
throw new ValidationException(new List<ValidationFailure>
|
||||
{
|
||||
new ValidationFailure("TmdbId", "A movie with this ID was not found", newMovie.TmdbId)
|
||||
new ValidationFailure("TmdbId", $"A movie with this ID was not found. Path: {newMovie.Path}", newMovie.TmdbId)
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user