浏览代码

Skip removed images (#14823)

Tim Eisele 1 月之前
父节点
当前提交
b73ea1b99d
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Emby.Server.Implementations/Library/LibraryManager.cs

+ 6 - 0
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -2032,6 +2032,12 @@ namespace Emby.Server.Implementations.Library
                     }
                 }
 
+                if (!File.Exists(image.Path))
+                {
+                    _logger.LogWarning("Image not found at {ImagePath}", image.Path);
+                    continue;
+                }
+
                 ImageDimensions size;
                 try
                 {