Skip to content

The Free Software Media System - Server Backend & API

Add default values to LyricResponse

1hitsong552b6aceae94
diff --git a/MediaBrowser.Controller/Lyrics/LyricResponse.cs b/MediaBrowser.Controller/Lyrics/LyricResponse.cs
index b3c65ac8c0..ded3ca10e2 100644
--- a/MediaBrowser.Controller/Lyrics/LyricResponse.cs
+++ b/MediaBrowser.Controller/Lyrics/LyricResponse.cs
@@ -10,10 +10,10 @@ public class LyricResponse
/// <summary>
/// Gets or sets Metadata.
/// </summary>
- public LyricMetadata Metadata { get; set; }
+ public LyricMetadata Metadata { get; set; } = new LyricMetadata();
/// <summary>
/// Gets or sets Lyrics.
/// </summary>
- public IEnumerable<LyricLine> Lyrics { get; set; }
+ public IReadOnlyCollection<LyricLine> Lyrics { get; set; } = new List<LyricLine>();
}