소스 검색

Add last one

Bond_009 5 년 전
부모
커밋
9b2cf8501f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      MediaBrowser.Api/UserLibrary/ItemsService.cs

+ 3 - 1
MediaBrowser.Api/UserLibrary/ItemsService.cs

@@ -228,7 +228,9 @@ namespace MediaBrowser.Api.UserLibrary
             var collectionFolders = _libraryManager.GetCollectionFolders(item);
             foreach (var collectionFolder in collectionFolders)
             {
-                if (user.Policy.EnabledFolders.Contains(collectionFolder.Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
+                if (user.Policy.EnabledFolders.Contains(
+                    collectionFolder.Id.ToString("N", CultureInfo.InvariantCulture),
+                    StringComparer.OrdinalIgnoreCase))
                 {
                     isInEnabledFolder = true;
                 }