Ver Fonte

Ignore local images when replacing and saving is enabled

Shadowghost há 1 ano atrás
pai
commit
4714b3af67
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      MediaBrowser.Providers/Manager/ItemImageProvider.cs

+ 2 - 1
MediaBrowser.Providers/Manager/ItemImageProvider.cs

@@ -419,7 +419,8 @@ namespace MediaBrowser.Providers.Manager
                 var type = _singularImages[i];
                 var image = GetFirstLocalImageInfoByType(images, type);
 
-                if (image is not null)
+                // Only use local images if we are not replacing and saving
+                if (image is not null && !(item.IsSaveLocalMetadataEnabled() && refreshOptions.ReplaceAllImages))
                 {
                     var currentImage = item.GetImageInfo(type, 0);
                     // if image file is stored with media, don't replace that later