add cover art member to song class

This commit is contained in:
Erica Z 2024-10-28 10:16:15 +01:00
parent dfe4a24c5b
commit a5091d42e0

View file

@ -64,6 +64,7 @@ public class Subsonic.Song : Object {
public int64 duration { get; private set; }
public int64 play_count { get; private set; }
public string? genre { get; private set; }
public string cover_art { get; private set; }
public Song (Json.Reader reader) {
reader.read_member ("id");
@ -101,6 +102,10 @@ public class Subsonic.Song : Object {
reader.read_member ("genre");
this.genre = reader.get_string_value ();
reader.end_member ();
reader.read_member ("coverArt");
this.cover_art = reader.get_string_value ();
reader.end_member ();
}
}