grzegorzctl

This commit is contained in:
2024-03-31 04:46:54 +02:00
parent 99f41e54c4
commit b23b02b5e8
5 changed files with 157 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ def get_volume():
return "volume"
@request_post
def set_volume(volume: int): # between 0 and 100 (you may also exceed 100)
def set_volume(volume: float): # between 0 and 100 (you may also exceed 100)
args = urlencode(locals())
return f"volume?{args}", None
@@ -116,7 +116,6 @@ def get_playlist_looping():
def playlist_set_looping(looping: bool):
return f"playlist/loop?loop={str(bool(looping)).lower()}", None
@request_get
def get_playback_pos():
return "time"