From 66fcde7325a3eb3ae5a475911cdb4c0fff323083 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 21 Sep 2024 00:41:26 +0300 Subject: [PATCH] Include current quality in rejection message for not an upgrade --- .../MovieImport/Specifications/UpgradeSpecification.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/MovieImport/Specifications/UpgradeSpecification.cs b/src/NzbDrone.Core/MediaFiles/MovieImport/Specifications/UpgradeSpecification.cs index f5fce19a0..fcd7ffc93 100644 --- a/src/NzbDrone.Core/MediaFiles/MovieImport/Specifications/UpgradeSpecification.cs +++ b/src/NzbDrone.Core/MediaFiles/MovieImport/Specifications/UpgradeSpecification.cs @@ -45,9 +45,8 @@ public Decision IsSatisfiedBy(LocalMovie localMovie, DownloadClientItem download if (qualityCompare < 0) { - _logger.Debug("This file isn't a quality upgrade for movie. New Quality is {0}. Skipping {1}", localMovie.Quality.Quality, localMovie.Path); - - return Decision.Reject("Not an upgrade for existing movie file. New Quality is {0}", localMovie.Quality.Quality); + _logger.Debug("This file isn't a quality upgrade for movie. Existing quality: {0}. New Quality {1}. Skipping {2}", movieFile.Quality.Quality, localMovie.Quality.Quality, localMovie.Path); + return Decision.Reject("Not an upgrade for existing movie file. Existing quality: {0}. New Quality {1}.", movieFile.Quality.Quality, localMovie.Quality.Quality); } // Same quality, propers/repacks are preferred and it is not a revision update. Reject revision downgrade.