diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-06 09:59:31 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-06 09:59:31 +1300 |
| commit | 4c59449ef8ef64b631f5c6512b08f6a01712711b (patch) | |
| tree | 0895c2426e01ee3262fb23155d7f83305e0ac557 /backend.py | |
| parent | ae0f9122c71a68fb2b8315ddd177195690c698ac (diff) | |
| download | remote-automation-4c59449ef8ef64b631f5c6512b08f6a01712711b.tar.xz remote-automation-4c59449ef8ef64b631f5c6512b08f6a01712711b.zip | |
actually use params
Diffstat (limited to 'backend.py')
| -rw-r--r-- | backend.py | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -59,15 +59,9 @@ def music(): "id": PLAYLIST_ID, } - print(f"Params: {params}") - - response = requests.get(f"{NAVIDROME_URL}/rest/getPlaylist.view") + response = requests.get(f"{NAVIDROME_URL}/rest/getPlaylist.view", params=params) response.raise_for_status() - print("Navidrome status:", response.status_code) - print("Navidrome content-type:", response.headers.get("content-type")) - print("Navidrome response:", response.text[:500]) - songs = response.json()["subsonic-response"]["playlist"]["entry"] song = random.choice(songs) |
