From 4f208df77ce384415c5325d70a13a6a75dd44c7c Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Sat, 25 Jan 2025 11:49:34 +0100 Subject: [PATCH] add found extension to rejection reason --- .../MediaFiles/DownloadedEpisodesImportService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/DownloadedEpisodesImportService.cs b/src/NzbDrone.Core/MediaFiles/DownloadedEpisodesImportService.cs index 22155cd0f..e4901257e 100644 --- a/src/NzbDrone.Core/MediaFiles/DownloadedEpisodesImportService.cs +++ b/src/NzbDrone.Core/MediaFiles/DownloadedEpisodesImportService.cs @@ -265,8 +265,8 @@ namespace NzbDrone.Core.MediaFiles return new List { new ImportResult(new ImportDecision(new LocalEpisode { Path = fileInfo.FullName }, - new ImportRejection(ImportRejectionReason.DangerousFile, "Caution: Found potentially dangerous file")), - $"Caution: Found potentially dangerous file") + new ImportRejection(ImportRejectionReason.DangerousFile, $"Caution: Found potentially dangerous file with extension: {extension}")), + $"Caution: Found potentially dangerous file with extension: {extension}") }; } @@ -275,8 +275,8 @@ namespace NzbDrone.Core.MediaFiles return new List { new ImportResult(new ImportDecision(new LocalEpisode { Path = fileInfo.FullName }, - new ImportRejection(ImportRejectionReason.ExecutableFile, "Caution: Found executable file")), - $"Caution: Found executable file") + new ImportRejection(ImportRejectionReason.ExecutableFile, $"Caution: Found executable file with extension: '{extension}'")), + $"Caution: Found executable file with extension: '{extension}'") }; }