The Free Software Media System - Server Backend & API
Skip processing of images that don't exist
Claus Vium7322485a6d26
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.csindex faaeb5af84..6d209d8d01 100644--- a/Emby.Drawing/ImageProcessor.cs+++ b/Emby.Drawing/ImageProcessor.cs@@ -180,6 +180,12 @@ namespace Emby.Drawingvar supportedImageInfo = await GetSupportedImage(originalImagePath, dateModified).ConfigureAwait(false);originalImagePath = supportedImageInfo.path;++ if (!File.Exists(originalImagePath))+ {+ return (originalImagePath, MimeTypes.GetMimeType(originalImagePath), dateModified);+ }+dateModified = supportedImageInfo.dateModified;bool requiresTransparency = TransparentImageTypes.Contains(Path.GetExtension(originalImagePath));@@ -265,8 +271,6 @@ namespace Emby.Drawing{// If it fails for whatever reason, return the original image_logger.LogError(ex, "Error encoding image");-- // Just spit out the original file if all the options are defaultreturn (originalImagePath, MimeTypes.GetMimeType(originalImagePath), dateModified);}finally