summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2012-05-11 12:53:34 +0200
committerLars-Dominik Braun <lars@6xq.net>2012-05-11 12:53:34 +0200
commitc4330c3f65b2eacd3433ba19b1483f6704303205 (patch)
tree1df78ab6fb85cc57ee4663f1f01d4648b4834c99
parentc9aff4f4ceddc70b8b98ca8d5d248eac6be2619f (diff)
downloadpianobar-c4330c3f65b2eacd3433ba19b1483f6704303205.tar.gz
pianobar-c4330c3f65b2eacd3433ba19b1483f6704303205.tar.bz2
pianobar-c4330c3f65b2eacd3433ba19b1483f6704303205.zip
piano: Add stationToken to addFeedback request
Fixes thumbs up/down and move song.
-rw-r--r--src/libpiano/request.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libpiano/request.c b/src/libpiano/request.c
index 7b73bc1..35124f4 100644
--- a/src/libpiano/request.c
+++ b/src/libpiano/request.c
@@ -175,8 +175,11 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req,
assert (reqData != NULL);
assert (reqData->trackToken != NULL);
+ assert (reqData->stationId != NULL);
assert (reqData->rating != PIANO_RATE_NONE);
+ json_object_object_add (j, "stationToken",
+ json_object_new_string (reqData->stationId));
json_object_object_add (j, "trackToken",
json_object_new_string (reqData->trackToken));
json_object_object_add (j, "isPositive",