From 422fa5bb4ce5c5e9f705be6730610e610afd5271 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 4 Mar 2018 15:25:39 +0100 Subject: [PATCH] Add api.playlist_shuffle --- grzegorz/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/grzegorz/api.py b/grzegorz/api.py index de55a63..39be5e7 100644 --- a/grzegorz/api.py +++ b/grzegorz/api.py @@ -189,8 +189,9 @@ async def playlist_move(request, mpv_control): int(request.args["index2"][0])) return locals() -#@bp.get("/something") +@bp.post("/playlist/shuffle") +@doc.summary("Clears single item or whole playlist") @response_json -async def noe(request, mpv_control): - value = await mpv_control.playlist_shuffle() +async def playlist_shuffle(request, mpv_control): + success = await mpv_control.playlist_shuffle() return locals()