diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-10-03 11:06:30 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-10-03 11:06:30 +0200 |
commit | afe47b2646c85d98369d31046b27c2065bec5d0f (patch) | |
tree | 1495f1105da62182b6dac1f314d55cfaf2154b5f /libpiano/src/main.c | |
parent | 298380669781d86ecc8bd66d4961fbebf08281ca (diff) | |
download | pianobar-afe47b2646c85d98369d31046b27c2065bec5d0f.tar.gz pianobar-afe47b2646c85d98369d31046b27c2065bec5d0f.tar.bz2 pianobar-afe47b2646c85d98369d31046b27c2065bec5d0f.zip |
piano: Fix getFragment request
aac playback didn't work, but I'm sure it did some time ago. Looks like
pandora changed the api without bumping the version number -- ugly :/
Thanks to the arch linux guys
(http://aur.archlinux.org/packages.php?ID=23233)
Diffstat (limited to 'libpiano/src/main.c')
-rw-r--r-- | libpiano/src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libpiano/src/main.c b/libpiano/src/main.c index 0510830..35ae8d5 100644 --- a/libpiano/src/main.c +++ b/libpiano/src/main.c @@ -261,7 +261,7 @@ PianoReturn_t PianoGetPlaylist (PianoHandle_t *ph, const char *stationId, char xmlSendBuf[PIANO_SEND_BUFFER_SIZE], *retStr; PianoReturn_t ret; - /* FIXME: remove static numbers */ + /* FIXME: remove static, "magic" numbers */ snprintf (xmlSendBuf, sizeof (xmlSendBuf), "<?xml version=\"1.0\"?>" "<methodCall><methodName>playlist.getFragment</methodName>" "<params><param><value><int>%li</int></value></param>" @@ -271,11 +271,13 @@ PianoReturn_t PianoGetPlaylist (PianoHandle_t *ph, const char *stationId, "<param><value><string></string></value></param>" "<param><value><string></string></value></param>" "<param><value><string>%s</string></value></param>" + "<param><value><string>0</string></value></param>" + "<param><value><string>0</string></value></param>" "</params></methodCall>", time (NULL), ph->user.authToken, stationId, PianoAudioFormatToString (format)); snprintf (ph->waith.path, sizeof (ph->waith.path), PIANO_RPC_PATH "rid=%s&lid=%s&method=getFragment&arg1=%s&arg2=0" - "&arg3=&arg4=&arg5=%s", ph->routeId, + "&arg3=&arg4=&arg5=%s&arg6=0&arg7=0", ph->routeId, ph->user.listenerId, stationId, PianoAudioFormatToString (format)); |