Add api.playlist_shuffle

This commit is contained in:
Peder Bergebakken Sundt 2018-03-04 15:25:39 +01:00
parent 3ce1008db6
commit 422fa5bb4c

View File

@ -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()