소스 검색

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
                 {