summaryrefslogtreecommitdiff
path: root/libpiano/src/xml.c
diff options
context:
space:
mode:
authorJuan C. Muller <jcmuller@gmail.com>2010-11-23 15:17:43 -0500
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-11-23 22:12:29 +0100
commit91192bd1473d6a43eb27ea802ac6fbd451f28fb2 (patch)
tree5f0145b52859c1dedd2b0eaab6ef49ddd163382f /libpiano/src/xml.c
parentb1ed17b08da468589c178d4a21daa77a481a04c8 (diff)
downloadpianobar-91192bd1473d6a43eb27ea802ac6fbd451f28fb2.tar.gz
pianobar-91192bd1473d6a43eb27ea802ac6fbd451f28fb2.tar.bz2
pianobar-91192bd1473d6a43eb27ea802ac6fbd451f28fb2.zip
Add support for art covers included in the XML playlist from pandora.
See issue #56
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r--libpiano/src/xml.c2
1 files changed, 2 insertions, 0 deletions
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) {