diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-01-27 16:47:05 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-01-27 16:47:05 +0100 |
commit | 560f4599c5238b98515bd0358d0333e4dc190b80 (patch) | |
tree | 5654cfd3e52a418411b38cea392525e4215f93db /libpiano/src/xml.c | |
parent | d52ebc8e84b24ccc9b8537c37bfa20ff810e01ca (diff) | |
download | pianobar-560f4599c5238b98515bd0358d0333e4dc190b80.tar.gz pianobar-560f4599c5238b98515bd0358d0333e4dc190b80.tar.bz2 pianobar-560f4599c5238b98515bd0358d0333e4dc190b80.zip |
piano: mp3 support
Breaks api
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r-- | libpiano/src/xml.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 71b6bb1..847bc49 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -290,7 +290,13 @@ void PianoXmlParsePlaylistCb (const char *key, const xmlNode *value, song->album = strdup (valueStr); } else if (strcmp ("fileGain", key) == 0) { song->fileGain = atof (valueStr); - } + } else if (strcmp ("audioEncoding", key) == 0) { + if (strcmp (valueStr, "aacplus") == 0) { + song->audioFormat = PIANO_AF_AACPLUS; + } else if (strcmp (valueStr, "mp3") == 0) { + song->audioFormat = PIANO_AF_MP3; + } + } } /* parses userinfos sent by pandora as login response |