diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-06-12 00:20:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-12 00:20:54 +0200 |
| commit | cfad97ff28339088ab86c40661bb407024285a7c (patch) | |
| tree | 152c04363e23e233229a7b40080d388a13046657 /Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | |
| parent | adf406b1821800bbf1b214c4ac673defa362e4f4 (diff) | |
| parent | 66de8428960ec751521386c27e37909cf73add9e (diff) | |
Merge pull request #6096 from cvium/saving_private_ram
Diffstat (limited to 'Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs index 3380e29d4..c7d113963 100644 --- a/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs +++ b/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs @@ -77,7 +77,7 @@ namespace Emby.Server.Implementations.Library if (parent != null) { // Don't resolve these into audio files - if (string.Equals(Path.GetFileNameWithoutExtension(filename), BaseItem.ThemeSongFilename, StringComparison.Ordinal) + if (Path.GetFileNameWithoutExtension(filename.AsSpan()).Equals(BaseItem.ThemeSongFilename, StringComparison.Ordinal) && _libraryManager.IsAudioFile(filename)) { return true; |
