소스 검색

Do not run local providers if replacing and saving is enabled

Shadowghost 1 년 전
부모
커밋
b14edb8876
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      MediaBrowser.Providers/Manager/MetadataService.cs

+ 2 - 2
MediaBrowser.Providers/Manager/MetadataService.cs

@@ -670,8 +670,8 @@ namespace MediaBrowser.Providers.Manager
 
             var foundImageTypes = new List<ImageType>();
 
-            // Only execute local providers if we are not identifying
-            if (options.SearchResult is null)
+            // Do not execute local providers if we are identifying or replacing with NFO saving enabled
+            if (options.SearchResult is null && !(item.IsSaveLocalMetadataEnabled() && options.ReplaceAllMetadata))
             {
                 foreach (var provider in providers.OfType<ILocalMetadataProvider<TItemType>>())
                 {