Update MediaBrowser.Controller/Lyrics/LyricInfo.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
1ae5c83aa7
commit
5efa138c22
|
@ -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…
Reference in New Issue
Block a user