From 710d207dbd8dcb55641e775433cf13a16c6bbc48 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 24 Feb 2018 23:40:08 +0100 Subject: [PATCH] Ensure "playing" in playlist_get() is true This must be a bug in MPV --- grzegorz/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grzegorz/api.py b/grzegorz/api.py index 25e2de8..22f3ded 100644 --- a/grzegorz/api.py +++ b/grzegorz/api.py @@ -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")