Explorar o código

Skip removed images (#14823)

Tim Eisele hai 1 mes
pai
achega
b73ea1b99d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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
                 {