From afe47b2646c85d98369d31046b27c2065bec5d0f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 3 Oct 2009 11:06:30 +0200 Subject: 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) --- libpiano/src/main.c | 6 ++++-- 1 file 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), "" "playlist.getFragment" "%li" @@ -271,11 +271,13 @@ PianoReturn_t PianoGetPlaylist (PianoHandle_t *ph, const char *stationId, "" "" "%s" + "0" + "0" "", 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)); -- cgit v1.2.3