libpiano: add stationToken to addFeedback request: fixes thumbs
up/down and move song (upstream git commit c4330c3f65b2eacd3433ba19b1483f6704303205)
This commit is contained in:
parent
b113616306
commit
2463359bec
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.37 2012/05/10 11:23:18 dcoppa Exp $
|
||||
# $OpenBSD: Makefile,v 1.38 2012/05/14 08:07:00 dcoppa Exp $
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
COMMENT = console client for pandora
|
||||
|
||||
DISTNAME = pianobar-2012.05.06
|
||||
REVISION = 0
|
||||
REVISION = 1
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
CATEGORIES = audio
|
||||
|
||||
@ -15,7 +15,7 @@ HOMEPAGE = http://6xq.net/projects/pianobar/
|
||||
MASTER_SITES = ${HOMEPAGE} \
|
||||
http://spacehopper.org/mirrors/
|
||||
|
||||
SHARED_LIBS = piano 1.1 # 0.0.0
|
||||
SHARED_LIBS = piano 1.2 # 0.0.0
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
20
audio/pianobar/patches/patch-src_libpiano_request_c
Normal file
20
audio/pianobar/patches/patch-src_libpiano_request_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-src_libpiano_request_c,v 1.1 2012/05/14 08:07:00 dcoppa Exp $
|
||||
|
||||
Add stationToken to addFeedback request: fixes thumbs up/down and
|
||||
move song
|
||||
(upstream git commit c4330c3f65b2eacd3433ba19b1483f6704303205)
|
||||
|
||||
--- src/libpiano/request.c.orig Mon May 14 09:58:35 2012
|
||||
+++ src/libpiano/request.c Mon May 14 10:00:03 2012
|
||||
@@ -175,8 +175,11 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRe
|
||||
|
||||
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",
|
Loading…
Reference in New Issue
Block a user