mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[jsonapi] Fix playing from position if player state is shuffled
This commit is contained in:
parent
21bfd0645b
commit
2b7ff60771
@ -1327,6 +1327,7 @@ static int
|
|||||||
play_item_at_position(const char *param)
|
play_item_at_position(const char *param)
|
||||||
{
|
{
|
||||||
uint32_t position;
|
uint32_t position;
|
||||||
|
struct player_status status;
|
||||||
struct db_queue_item *queue_item;
|
struct db_queue_item *queue_item;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@ -1338,7 +1339,9 @@ play_item_at_position(const char *param)
|
|||||||
return HTTP_BADREQUEST;
|
return HTTP_BADREQUEST;
|
||||||
}
|
}
|
||||||
|
|
||||||
queue_item = db_queue_fetch_bypos(position, 0);
|
player_get_status(&status);
|
||||||
|
|
||||||
|
queue_item = db_queue_fetch_bypos(position, status.shuffle);
|
||||||
if (!queue_item)
|
if (!queue_item)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_WEB, "No queue item at position '%d'\n", position);
|
DPRINTF(E_LOG, L_WEB, "No queue item at position '%d'\n", position);
|
||||||
|
Loading…
Reference in New Issue
Block a user