Update MediaBrowser.Controller/Lyrics/LyricInfo.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
1hitsong 2022-09-26 16:24:21 -04:00 committed by GitHub
parent 1ae5c83aa7
commit 5efa138c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ public static class LyricInfo
foreach (var lyricFilePath in Directory.GetFiles(itemDirectoryPath, $"{Path.GetFileNameWithoutExtension(itemPath)}.*"))
{
if (EnumerableExtensions.Contains(lyricProvider.SupportedMediaTypes, Path.GetExtension(lyricFilePath.AsSpan())[1..], StringComparison.OrdinalIgnoreCase))
if (lyricProvider.SupportedMediaTypes.Contains(Path.GetExtension(lyricFilePath.AsSpan())[1..], StringComparison.OrdinalIgnoreCase))
{
return lyricFilePath;
}