summaryrefslogtreecommitdiff
path: root/src/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2020-03-31 17:28:23 +0200
committerLars-Dominik Braun <lars@6xq.net>2020-03-31 17:28:23 +0200
commite07f023cb5cdbb0c24d6dccd9f3b771078831dcb (patch)
treed57c7ccc7f13ca833fd643b0bfc387be16358e36 /src/libpiano
parentda7daddf453601a86c9b94c8c31da1fe4c76e89b (diff)
downloadpianobar-e07f023cb5cdbb0c24d6dccd9f3b771078831dcb.tar.gz
pianobar-e07f023cb5cdbb0c24d6dccd9f3b771078831dcb.tar.bz2
pianobar-e07f023cb5cdbb0c24d6dccd9f3b771078831dcb.zip
piano: Request all stations
By default the number of stations returned is limited to 95. Adding a flag returns all stations. Fixes #693.
Diffstat (limited to 'src/libpiano')
-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 2f9c91a..35feda9 100644
--- a/src/libpiano/request.c
+++ b/src/libpiano/request.c
@@ -117,6 +117,9 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req,
/* get stations, user must be authenticated */
assert (ph->user.listenerId != NULL);
+ json_object_object_add (j, "returnAllStations",
+ json_object_new_boolean (true));
+
method = "user.getStationList";
break;
}