diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-10-07 10:51:05 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-10-07 10:51:05 +0200 |
commit | 30d31f709e7bffda8fe1b9275f0919cc7c13e546 (patch) | |
tree | ad8330462a7d2d8aa188902b3388d6b6fb73af17 /libpiano/src/piano.c | |
parent | eab8c61c971f0272266d0e6adc93f29a0c5138f1 (diff) | |
download | pianobar-30d31f709e7bffda8fe1b9275f0919cc7c13e546.tar.gz pianobar-30d31f709e7bffda8fe1b9275f0919cc7c13e546.tar.bz2 pianobar-30d31f709e7bffda8fe1b9275f0919cc7c13e546.zip |
Protocol version bump (v28)
New crypto keys and a small change in setQuickmix rpc call.
Diffstat (limited to 'libpiano/src/piano.c')
-rw-r--r-- | libpiano/src/piano.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libpiano/src/piano.c b/libpiano/src/piano.c index bb3cf23..4354fa6 100644 --- a/libpiano/src/piano.c +++ b/libpiano/src/piano.c @@ -39,7 +39,7 @@ THE SOFTWARE. #include "crypt.h" #include "config.h" -#define PIANO_PROTOCOL_VERSION "27" +#define PIANO_PROTOCOL_VERSION "28" #define PIANO_RPC_HOST "www.pandora.com" #define PIANO_RPC_PORT "80" #define PIANO_RPC_PATH "/radio/xmlrpc/v" PIANO_PROTOCOL_VERSION "?" @@ -541,11 +541,14 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, } } strncat (xmlSendBuf, - "</data></array></value></param></params></methodCall>", + "</data></array></value></param>" + "<param><value><string>CUSTOM</string></value></param>" + "<param><value><string></string></value></param>" + "</params></methodCall>", sizeof (xmlSendBuf) - strlen (xmlSendBuf) - 1); snprintf (req->urlPath, sizeof (req->urlPath), PIANO_RPC_PATH - "rid=%s&lid=%s&method=setQuickMix&arg1=RANDOM&arg2=%s", + "rid=%s&lid=%s&method=setQuickMix&arg1=RANDOM&arg2=%s&arg3=CUSTOM&arg4=", ph->routeId, ph->user.listenerId, urlArgBuf); break; } |