aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-10-06 09:59:31 +1300
committerArslaan Pathan <[email protected]>2026-10-06 09:59:31 +1300
commit4c59449ef8ef64b631f5c6512b08f6a01712711b (patch)
tree0895c2426e01ee3262fb23155d7f83305e0ac557
parentae0f9122c71a68fb2b8315ddd177195690c698ac (diff)
downloadremote-automation-4c59449ef8ef64b631f5c6512b08f6a01712711b.tar.xz
remote-automation-4c59449ef8ef64b631f5c6512b08f6a01712711b.zip
actually use params
-rw-r--r--backend.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/backend.py b/backend.py
index dcadb79..82d63b4 100644
--- a/backend.py
+++ b/backend.py
@@ -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)