aboutsummaryrefslogtreecommitdiff
path: root/backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend.py')
-rw-r--r--backend.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend.py b/backend.py
index c5bc759..0bafea9 100644
--- a/backend.py
+++ b/backend.py
@@ -62,6 +62,10 @@ def music():
response = requests.get(f"{NAVIDROME_URL}/rest/getPlaylist.view")
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)