diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-06 09:56:46 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-06 09:56:46 +1300 |
| commit | 693dcf176b3f51a38a78e590873e95a831f2f7b3 (patch) | |
| tree | 92ab8e366db9aa9efdd6f55d22e6c1aa52d87f06 | |
| parent | 0def2235f1ca8163309cf433f7ec9388c4ecba42 (diff) | |
| download | remote-automation-693dcf176b3f51a38a78e590873e95a831f2f7b3.tar.xz remote-automation-693dcf176b3f51a38a78e590873e95a831f2f7b3.zip | |
debug
| -rw-r--r-- | backend.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
