add found extension to rejection reason

pull/7601/head
Stevie Robinson 3 months ago
parent 81108a3d7f
commit 4f208df77c

@ -265,8 +265,8 @@ namespace NzbDrone.Core.MediaFiles
return new List<ImportResult>
{
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<ImportResult>
{
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}'")
};
}

Loading…
Cancel
Save