summaryrefslogtreecommitdiff
path: root/libpiano/src/xml.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-07-08 20:51:10 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-07-08 20:51:48 +0200
commita195a94be7aa14d839c77275814a52d2ee6b8b6f (patch)
tree912ab804af1ce4db4717c75ea980476f52849255 /libpiano/src/xml.c
parent82b49378dfa407673118a8ce2f1c85122ab349d5 (diff)
downloadpianobar-a195a94be7aa14d839c77275814a52d2ee6b8b6f.tar.gz
pianobar-a195a94be7aa14d839c77275814a52d2ee6b8b6f.tar.bz2
pianobar-a195a94be7aa14d839c77275814a52d2ee6b8b6f.zip
Initial pandora one support (higher mp3 bitrates)
Time display should be fixed. I need feedback!
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r--libpiano/src/xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c
index 6d3d35a..591e5be 100644
--- a/libpiano/src/xml.c
+++ b/libpiano/src/xml.c
@@ -108,7 +108,7 @@ PianoReturn_t PianoXmlIsFault (const xmlNode *docRoot) {
PianoReturn_t ret;
/* FIXME: we could get into troubles when fault is not the first child
- * (pandora yould add whitespace e.g.) */
+ * (pandora could add whitespace e.g.) */
if (docRoot->children != NULL &&
docRoot->children->type == XML_ELEMENT_NODE &&
xmlStrEqual (docRoot->children->name, (xmlChar *) "fault")) {
@@ -298,6 +298,8 @@ void PianoXmlParsePlaylistCb (const char *key, const xmlNode *value,
song->audioFormat = PIANO_AF_AACPLUS;
} else if (strcmp (valueStr, "mp3") == 0) {
song->audioFormat = PIANO_AF_MP3;
+ } else if (strcmp (valueStr, "mp3-hifi") == 0) {
+ song->audioFormat = PIANO_AF_MP3_HI;
}
}
}
@@ -801,3 +803,4 @@ PianoReturn_t PianoXmlParseNarrative (const char *xml, char **retNarrative) {
return ret;
}
+