summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-04-03 17:08:41 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-04-04 10:20:52 +0200
commita04409f1061c23409f73d3be9ca31a364645b215 (patch)
tree43ae900fcec315fea91d4009db50d427ef57d55d /src
parent9a46358f85427b375cb1b7844529737bd247913d (diff)
downloadpianobar-a04409f1061c23409f73d3be9ca31a364645b215.tar.gz
pianobar-a04409f1061c23409f73d3be9ca31a364645b215.tar.bz2
pianobar-a04409f1061c23409f73d3be9ca31a364645b215.zip
piano: Added songDetailUrl to PianoSong_t
Diffstat (limited to 'src')
-rw-r--r--src/libpiano/piano.c1
-rw-r--r--src/libpiano/piano.h1
-rw-r--r--src/libpiano/xml.c2
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);
}
}