mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-25 04:19:15 -05:00
[jsonapi] Support starting playback from position in queue/items/add
This commit is contained in:
parent
4c2f178aa0
commit
a3f2551eea
@ -1995,7 +1995,10 @@ jsonapi_reply_queue_tracks_add(struct httpd_request *hreq)
|
||||
param = evhttp_find_header(hreq->query, "playback");
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user