The Free Software Media System - Server Backend & API
Check for attachment file before trying to remove it during cleanup.
Andrew Mahonec09eb3470815
diff --git a/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs b/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.csindex bda5c2f372..501dd3fed9 100644--- a/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs+++ b/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs@@ -220,11 +220,10 @@ namespace MediaBrowser.MediaEncoding.Attachments_logger.LogWarning("Deleting extracted attachment {Path} due to failure: {ExitCode}", outputPath, exitCode);try{- _fileSystem.DeleteFile(outputPath);- }- catch (FileNotFoundException)- {-+ if (File.Exists(outputPath))+ {+ _fileSystem.DeleteFile(outputPath);+ }}catch (IOException ex){