From a7a1d48e0daa403de32ce56538823a0668416934 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 30 Sep 2020 21:24:18 -0400 Subject: [PATCH] Fixed: Log path when import fails for movie import Co-Authored-By: Mark McDowall --- src/NzbDrone.Core/Movies/AddMovieService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Movies/AddMovieService.cs b/src/NzbDrone.Core/Movies/AddMovieService.cs index c899120a6..364183374 100644 --- a/src/NzbDrone.Core/Movies/AddMovieService.cs +++ b/src/NzbDrone.Core/Movies/AddMovieService.cs @@ -59,7 +59,8 @@ public List AddMovies(List 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 { - 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) }); }