aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-10-06 09:56:46 +1300
committerArslaan Pathan <[email protected]>2026-10-06 09:56:46 +1300
commit693dcf176b3f51a38a78e590873e95a831f2f7b3 (patch)
tree92ab8e366db9aa9efdd6f55d22e6c1aa52d87f06
parent0def2235f1ca8163309cf433f7ec9388c4ecba42 (diff)
downloadremote-automation-693dcf176b3f51a38a78e590873e95a831f2f7b3.tar.xz
remote-automation-693dcf176b3f51a38a78e590873e95a831f2f7b3.zip
debug
-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)