The Free Software Media System - Server Backend & API
Use string.IsNullOrEmpty
Niels van Velzen0af5373f6d90
diff --git a/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs b/MediaBrowser.Providers/Lyric/DefaultLyricProvider.csindex a26f2babbf..ab09f278aa 100644--- a/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs+++ b/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs@@ -32,7 +32,7 @@ public class DefaultLyricProvider : ILyricProviderif (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);}