Add controlls for looping the playlist

This commit is contained in:
2019-03-13 11:37:49 +01:00
parent f273c23e37
commit 7f1469fbb0
2 changed files with 30 additions and 4 deletions

View File

@@ -104,6 +104,15 @@ def playlist_move(index1:int, index2:int):
args = urlencode(locals())
return f"playlist/move?{args}", None
@request_get
def get_playlist_looping():
return f"playlist/loop"
@request_post
def playlist_set_looping(looping:bool):
return f"playlist/loop?loop={str(bool(looping)).lower()}", None
@request_get
def get_playback_pos():
return f"time"