Update MediaBrowser.Controller/Lyrics/LyricInfo.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
pull/8381/head
1hitsong 2 years ago committed by GitHub
parent 1ae5c83aa7
commit 5efa138c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save