Explorar o código

handle non-local images in ClearImages

Luke Pulverenti %!s(int64=9) %!d(string=hai) anos
pai
achega
6b124fc736
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      MediaBrowser.Providers/Manager/ItemImageProvider.cs

+ 6 - 0
MediaBrowser.Providers/Manager/ItemImageProvider.cs

@@ -362,6 +362,12 @@ namespace MediaBrowser.Providers.Manager
 
             foreach (var image in item.GetImages(type).ToList())
             {
+                if (!image.IsLocalFile)
+                {
+                    // TODO: Need to get this image removed
+                    continue;
+                }
+
                 // Delete the source file
                 var currentFile = new FileInfo(image.Path);