The Free Software Media System - Server Backend & API
allow collections named trailers
Luke Pulverentib0c484e16001
diff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.csindex a801aef4ee..1c279016d6 100644--- a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs+++ b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs@@ -66,7 +66,8 @@ namespace MediaBrowser.Server.Implementations.Libraryreturn 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;}