diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-03-14 11:47:26 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-03-14 11:47:26 +0100 |
commit | 90f6ffbdb7c7cc07cb02b69fcfb3a3844f0180b7 (patch) | |
tree | 24dc728782be82d00e6d0f6676de856a0227393b /src/libpiano/request.c | |
parent | ebfd7d45c6b8eb5b2a1ee6e97a3f21f5f5bf9b43 (diff) | |
download | pianobar-90f6ffbdb7c7cc07cb02b69fcfb3a3844f0180b7.tar.gz pianobar-90f6ffbdb7c7cc07cb02b69fcfb3a3844f0180b7.tar.bz2 pianobar-90f6ffbdb7c7cc07cb02b69fcfb3a3844f0180b7.zip |
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.
Diffstat (limited to 'src/libpiano/request.c')
-rw-r--r-- | src/libpiano/request.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |