Ensure "playing" in playlist_get() is true
This must be a bug in MPV
This commit is contained in:
parent
bca1ec78b3
commit
710d207dbd
@ -106,7 +106,8 @@ async def noe(request, mpv_control):
|
|||||||
async def playlist_get(request, mpv_control):
|
async def playlist_get(request, mpv_control):
|
||||||
value = await mpv_control.playlist_get()
|
value = await mpv_control.playlist_get()
|
||||||
for i, v in enumerate(value):
|
for i, v in enumerate(value):
|
||||||
pass
|
if "current" in v and v["current"] == True:
|
||||||
|
v["playing"] = await mpv_control.pause_get() == False
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
@bp.post("/playlist/next")
|
@bp.post("/playlist/next")
|
||||||
|
Loading…
Reference in New Issue
Block a user