diff options
| author | cvium <clausvium@gmail.com> | 2021-05-24 00:30:41 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-05-24 00:30:41 +0200 |
| commit | 42a2cc1747c7859c63334a7a45792e0af1410e1a (patch) | |
| tree | 16e9587342a83948ac6742f05518d9a31836c235 /Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | |
| parent | db9d3b8653d865459e5df5a2fba18f0c9462dbb6 (diff) | |
Remove some unnecessary allocations
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; |
