瀏覽代碼

allow collections named trailers

Luke Pulverenti 12 年之前
父節點
當前提交
b0c484e160
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs

+ 2 - 1
MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs

@@ -66,7 +66,8 @@ namespace MediaBrowser.Server.Implementations.Library
                     return true;
                 }
 
-                if (string.Equals(filename, BaseItem.TrailerFolderName, StringComparison.OrdinalIgnoreCase))
+                // Ignore trailer folders but allow it at the collection level
+                if (string.Equals(filename, BaseItem.TrailerFolderName, StringComparison.OrdinalIgnoreCase) && !(args.Parent is AggregateFolder) && !(args.Parent is UserRootFolder))
                 {
                     return true;
                 }