From 18da4b7d37cebd79f170d5aab300aa98548d232b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 9 Jul 2011 10:27:25 +0200 Subject: piano: Protocol version bump (v31) Keys unchanged. Empty argument added to createStation. Thanks to ZigZagJoe! --- src/libpiano/piano.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c index fafbf10..3ed835a 100644 --- a/src/libpiano/piano.c +++ b/src/libpiano/piano.c @@ -39,7 +39,7 @@ THE SOFTWARE. #include "crypt.h" #include "config.h" -#define PIANO_PROTOCOL_VERSION "30" +#define PIANO_PROTOCOL_VERSION "31" #define PIANO_RPC_HOST "www.pandora.com" #define PIANO_RPC_PORT "80" #define PIANO_RPC_PATH "/radio/xmlrpc/v" PIANO_PROTOCOL_VERSION "?" @@ -476,13 +476,17 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, snprintf (xmlSendBuf, sizeof (xmlSendBuf), "" "station.createStation" "%lu" + /* auth token */ "%s" + /* music id */ "%s%s" + /* empty */ + "" "", (unsigned long) timestamp, ph->user.authToken, reqData->type, reqData->id); snprintf (req->urlPath, sizeof (req->urlPath), PIANO_RPC_PATH - "rid=%s&lid=%s&method=createStation&arg1=%s%s", ph->routeId, + "rid=%s&lid=%s&method=createStation&arg1=%s%s&arg2=", ph->routeId, ph->user.listenerId, reqData->type, reqData->id); break; } @@ -498,8 +502,11 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, snprintf (xmlSendBuf, sizeof (xmlSendBuf), "" "station.addSeed" "%lu" + /* auth token */ "%s" + /* station id */ "%s" + /* music id */ "%s" "", (unsigned long) timestamp, ph->user.authToken, reqData->station->id, reqData->musicId); -- cgit v1.2.3