Ensure "playing" in playlist_get() is true

This must be a bug in MPV
This commit is contained in:
Peder Bergebakken Sundt 2018-02-24 23:40:08 +01:00
parent bca1ec78b3
commit 710d207dbd
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,8 @@ async def noe(request, mpv_control):
async def playlist_get(request, mpv_control):
value = await mpv_control.playlist_get()
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()
@bp.post("/playlist/next")