Pārlūkot izejas kodu

test for empty meta location when saving images

Luke Pulverenti 12 gadi atpakaļ
vecāks
revīzija
fc8abe1ac3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      MediaBrowser.Api/Images/ImageService.cs

+ 1 - 1
MediaBrowser.Api/Images/ImageService.cs

@@ -754,7 +754,7 @@ namespace MediaBrowser.Api.Images
                 }
 
                 // Don't save locally if there's no parent (special feature, trailer, etc)
-                var saveLocally = !(entity is Audio) && entity.Parent != null;
+                var saveLocally = !(entity is Audio) && entity.Parent != null && !string.IsNullOrEmpty(entity.MetaLocation);
 
                 if (imageType != ImageType.Primary)
                 {