Add index info to queue api
This commit is contained in:
parent
66188ba181
commit
96fbe8058b
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ def queue():
|
|||
if (room := state.rooms.get(int(room_id))) is None:
|
||||
return error("Invalid room")
|
||||
|
||||
return {"success": True, "queue": room.playing}
|
||||
return {"success": True, "queue": room.playing, "index": room.playing_idx}
|
||||
|
||||
|
||||
@app.post("/api/queue/next")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue