diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libpiano/piano.c | 1 | ||||
-rw-r--r-- | src/libpiano/piano.h | 1 | ||||
-rw-r--r-- | src/libpiano/xml.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c index 391ea2d..e79ce8d 100644 --- a/src/libpiano/piano.c +++ b/src/libpiano/piano.c @@ -127,6 +127,7 @@ void PianoDestroyPlaylist (PianoSong_t *playlist) { free (curSong->artistMusicId); free (curSong->feedbackId); free (curSong->seedId); + free (curSong->detailUrl); lastSong = curSong; curSong = curSong->next; free (lastSong); diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h index 94c5985..54eab3a 100644 --- a/src/libpiano/piano.h +++ b/src/libpiano/piano.h @@ -73,6 +73,7 @@ typedef struct PianoSong { char *title; char *seedId; char *feedbackId; + char *detailUrl; float fileGain; PianoSongRating_t rating; PianoAudioFormat_t audioFormat; diff --git a/src/libpiano/xml.c b/src/libpiano/xml.c index 91d5817..772bbe2 100644 --- a/src/libpiano/xml.c +++ b/src/libpiano/xml.c @@ -306,6 +306,8 @@ static void PianoXmlParsePlaylistCb (const char *key, const ezxml_t value, song->songType = atoi (valueStr); } else if (strcmp ("feedbackId", key) == 0) { song->feedbackId = strdup (valueStr); + } else if (strcmp ("songDetailURL", key) == 0) { + song->detailUrl = strdup (valueStr); } } |