From 138480c6a7acb422e170e49e8027a69160745024 Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <PromyLOPh@gmail.com>
Date: Wed, 25 Jun 2008 12:16:11 +0200
Subject: 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.
---
 libpiano/src/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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,
-- 
cgit v1.2.3