diff options
Diffstat (limited to 'src/libpiano/response.c')
-rw-r--r-- | src/libpiano/response.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libpiano/response.c b/src/libpiano/response.c index 53d22c1..fefa610 100644 --- a/src/libpiano/response.c +++ b/src/libpiano/response.c @@ -278,6 +278,8 @@ PianoReturn_t PianoResponse (PianoHandle_t *ph, PianoRequest_t *req) { song->detailUrl = PianoJsonStrdup (s, "songDetailUrl"); song->fileGain = json_object_get_double ( json_object_object_get (s, "trackGain")); + song->length = json_object_get_int ( + json_object_object_get (s, "trackLength")); switch (json_object_get_int (json_object_object_get (s, "songRating"))) { case 1: |