summaryrefslogtreecommitdiff
path: root/libpiano/src
diff options
context:
space:
mode:
Diffstat (limited to 'libpiano/src')
-rw-r--r--libpiano/src/piano.c1
-rw-r--r--libpiano/src/piano.h1
-rw-r--r--libpiano/src/xml.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/libpiano/src/piano.c b/libpiano/src/piano.c
index 52b72c4..f6343b4 100644
--- a/libpiano/src/piano.c
+++ b/libpiano/src/piano.c
@@ -120,6 +120,7 @@ void PianoDestroyPlaylist (PianoSong_t *playlist) {
curSong = playlist;
while (curSong != NULL) {
free (curSong->audioUrl);
+ free (curSong->coverArt);
free (curSong->artist);
free (curSong->musicId);
free (curSong->title);
diff --git a/libpiano/src/piano.h b/libpiano/src/piano.h
index 52cfa75..ef6e386 100644
--- a/libpiano/src/piano.h
+++ b/libpiano/src/piano.h
@@ -68,6 +68,7 @@ typedef struct PianoSong {
char *album;
char *userSeed;
char *audioUrl;
+ char *coverArt;
char *musicId;
char *title;
float fileGain;
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c
index 36afc87..01294d8 100644
--- a/libpiano/src/xml.c
+++ b/libpiano/src/xml.c
@@ -259,6 +259,8 @@ static void PianoXmlParsePlaylistCb (const char *key, const ezxml_t value,
}
free (urlTail);
}
+ } else if (strcmp ("artRadio", key) == 0) {
+ song->coverArt = strdup (valueStr);
} else if (strcmp ("artistSummary", key) == 0) {
song->artist = strdup (valueStr);
} else if (strcmp ("musicId", key) == 0) {