diff options
| author | theguymadmax <theguymadmax@proton.me> | 2025-09-07 07:02:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-07 13:02:52 +0200 |
| commit | 0845b0c258166b0793ed4f4abd2fb14e3efa85f4 (patch) | |
| tree | c75719aed9399e1d2f78e89c575d929238793569 /Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | |
| parent | e043f93a72e75b159b987869cd590c77d55a034e (diff) | |
Skip non-media folders in movie resolver (#14724)
* Skip non-media folders in movie resolver
* Ignorepatterns first
Diffstat (limited to 'Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs index f9538fbad..ca0744a17 100644 --- a/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs +++ b/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs @@ -37,6 +37,11 @@ namespace Emby.Server.Implementations.Library return false; } + if (IgnorePatterns.ShouldIgnore(fileInfo.FullName)) + { + return true; + } + // Don't ignore top level folders if (fileInfo.IsDirectory && (parent is AggregateFolder || (parent?.IsTopParent ?? false))) @@ -44,11 +49,6 @@ namespace Emby.Server.Implementations.Library return false; } - if (IgnorePatterns.ShouldIgnore(fileInfo.FullName)) - { - return true; - } - if (parent is null) { return false; |
