[jsonapi] Support starting playback from position in queue/items/add

This commit is contained in:
chme 2019-02-22 13:24:36 +01:00
parent 4c2f178aa0
commit a3f2551eea
1 changed files with 4 additions and 1 deletions

View File

@ -1995,7 +1995,10 @@ jsonapi_reply_queue_tracks_add(struct httpd_request *hreq)
param = evhttp_find_header(hreq->query, "playback"); param = evhttp_find_header(hreq->query, "playback");
if (param && strcmp(param, "start") == 0) if (param && strcmp(param, "start") == 0)
{ {
player_playback_start(); if ((param = evhttp_find_header(hreq->query, "playback_from_position")))
play_item_at_position(param);
else
player_playback_start();
} }
return HTTP_OK; return HTTP_OK;