aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs b/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs
index a26f2babb..ab09f278a 100644
--- a/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs
+++ b/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs
@@ -32,7 +32,7 @@ public class DefaultLyricProvider : ILyricProvider
if (path is not null)
{
var content = await File.ReadAllTextAsync(path).ConfigureAwait(false);
- if (content.Length != 0)
+ if (!string.IsNullOrEmpty(content))
{
return new LyricFile(path, content);
}