diff options
| author | cvium <clausvium@gmail.com> | 2021-12-20 12:15:20 +0100 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-12-20 12:15:20 +0100 |
| commit | 83a94aa612f2451acc1e9ce7fcfc5c88b7989396 (patch) | |
| tree | 584673e43c0cfa4ea4ae5182607bf0e770e60b90 /Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | |
| parent | cd760943a9d554c560f35be2ee134969a224f92a (diff) | |
Fix extras folders
Diffstat (limited to 'Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs index 29758a078..e558fbe27 100644 --- a/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs +++ b/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs @@ -54,20 +54,10 @@ namespace Emby.Server.Implementations.Library { if (parent != null) { - // Ignore trailer folders but allow it at the collection level - if (string.Equals(filename, BaseItem.TrailersFolderName, StringComparison.OrdinalIgnoreCase) - && !(parent is AggregateFolder) - && !(parent is UserRootFolder)) - { - return true; - } - - if (string.Equals(filename, BaseItem.ThemeVideosFolderName, StringComparison.OrdinalIgnoreCase)) - { - return true; - } - - if (string.Equals(filename, BaseItem.ThemeSongsFolderName, StringComparison.OrdinalIgnoreCase)) + // Ignore extras folders but allow it at the collection level + if (_namingOptions.AllExtrasTypesFolderNames.ContainsKey(filename) + && parent is not AggregateFolder + && parent is not UserRootFolder) { return true; } |
