Parcourir la source

Add default values to LyricResponse

1hitsong il y a 2 ans
Parent
commit
552b6aceae
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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>();
 }