diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-25 12:16:11 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-25 12:16:11 +0200 |
commit | 138480c6a7acb422e170e49e8027a69160745024 (patch) | |
tree | 8cd26102c977f03213fa031986ee8315ed4ae283 | |
parent | 22744003f85a8ffde6da0750003c56d3ad757c10 (diff) | |
download | pianobar-windows-138480c6a7acb422e170e49e8027a69160745024.tar.gz pianobar-windows-138480c6a7acb422e170e49e8027a69160745024.tar.bz2 pianobar-windows-138480c6a7acb422e170e49e8027a69160745024.zip |
piano: Fix incompatible protocol change (addFeedback)
I was wrong. Pandora added a parameter to the addFeedback method which made
my version incompatible. Should be fixed now.
-rw-r--r-- | libpiano/src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpiano/src/main.c b/libpiano/src/main.c index 21b32f7..7cb9ad4 100644 --- a/libpiano/src/main.c +++ b/libpiano/src/main.c @@ -331,6 +331,7 @@ PianoReturn_t PianoAddFeedback (PianoHandle_t *ph, char *stationId, "<param><value><string>%s</string></value></param>" "<param><value><string>%s</string></value></param>" "<param><value><string>%s</string></value></param>" + "<param><value></value></param>" "<param><value><boolean>%i</boolean></value></param>" "<param><value><boolean>0</boolean></value></param>" "</params></methodCall>", time (NULL), ph->user.authToken, @@ -342,7 +343,7 @@ PianoReturn_t PianoAddFeedback (PianoHandle_t *ph, char *stationId, requestStr = PianoEncryptString (xmlSendBuf); snprintf (url, sizeof (url), PIANO_RPC_URL "rid=%s&lid=%s&method=addFeedback&arg1=%s&arg2=%s" - "&arg3=%s&arg4=%s&arg5=%s&arg6=%s&arg7=false", ph->routeId, + "&arg3=%s&arg4=%s&arg5=%s&arg6=&arg7=%s&arg8=false", ph->routeId, ph->user.listenerId, stationId, songMusicId, (songMatchingSeed == NULL) ? "" : songMatchingSeed, (songUserSeed == NULL) ? "" : songUserSeed, |