From 90f6ffbdb7c7cc07cb02b69fcfb3a3844f0180b7 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 14 Mar 2014 11:47:26 +0100 Subject: piano: Request track length The returned length is used as first length estimate before enough audio data arrives to show the real length and for the eventcmd API. See #427 and #64. --- src/libpiano/request.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libpiano/request.c') diff --git a/src/libpiano/request.c b/src/libpiano/request.c index 82bf350..6d0c8e5 100644 --- a/src/libpiano/request.c +++ b/src/libpiano/request.c @@ -133,6 +133,8 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, json_object_object_add (j, "stationToken", json_object_new_string (reqData->station->id)); + json_object_object_add (j, "includeTrackLength", + json_object_new_boolean (true)); method = "station.getPlaylist"; break; -- cgit v1.2.3