From a5091d42e0611a7e03326883bd35382b6e67a2b0 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Mon, 28 Oct 2024 10:16:15 +0100 Subject: [PATCH] add cover art member to song class --- src/subsonic.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/subsonic.vala b/src/subsonic.vala index 7935068..3209fd7 100644 --- a/src/subsonic.vala +++ b/src/subsonic.vala @@ -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 (); } }