Browse Source

Add default values to LyricResponse

1hitsong 2 years ago
parent
commit
552b6aceae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      MediaBrowser.Controller/Lyrics/LyricResponse.cs

+ 2 - 2
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>();
 }