summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-11-21 13:07:14 +0100
committerLars-Dominik Braun <lars@6xq.net>2011-11-21 13:07:14 +0100
commit762f9c005d5676459d0a8d542133fa636be86032 (patch)
treefa43acf879ff0f09c9334f72f2d127bdb2c52d42
parent3e527e95e6981856e9aee867a2cd1cd2f19a1276 (diff)
downloadpianobar-762f9c005d5676459d0a8d542133fa636be86032.tar.gz
pianobar-762f9c005d5676459d0a8d542133fa636be86032.tar.bz2
pianobar-762f9c005d5676459d0a8d542133fa636be86032.zip
piano: Update authenticateListener parameters
There are a few more parameters which I did not notice, since Pandora uses a strange JSON API (which returns XML!) for authentication now. See issue #187.
-rw-r--r--src/libpiano/piano.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c
index b1e7f01..14c4486 100644
--- a/src/libpiano/piano.c
+++ b/src/libpiano/piano.c
@@ -268,8 +268,16 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req,
"<?xml version=\"1.0\"?><methodCall>"
"<methodName>listener.authenticateListener</methodName>"
"<params><param><value><int>%lu</int></value></param>"
+ /* user */
"<param><value><string>%s</string></value></param>"
+ /* password */
"<param><value><string>%s</string></value></param>"
+ /* vendor */
+ "<param><value><string>html5tuner</string></value></param>"
+ "<param><value><string/></value></param>"
+ "<param><value><string/></value></param>"
+ "<param><value><string>HTML5</string></value></param>"
+ "<param><value><boolean>1</boolean></value></param>"
"</params></methodCall>", (unsigned long) timestamp,
logindata->user, xmlencodedPassword);
snprintf (req->urlPath, sizeof (req->urlPath), PIANO_RPC_PATH