diff options
| -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) |
