Feat: Final polish for deployment - Fallbacks and UI consistency
This commit is contained in:
parent
e63a9c664c
commit
2a893f89d6
1 changed files with 19 additions and 0 deletions
19
debug_browse.py
Normal file
19
debug_browse.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import requests
|
||||
import json
|
||||
|
||||
try:
|
||||
r = requests.get('http://localhost:8000/api/browse')
|
||||
data = r.json()
|
||||
print("Keys:", data.keys())
|
||||
for key, val in data.items():
|
||||
print(f"Key: {key}, Type: {type(val)}")
|
||||
if isinstance(val, list) and len(val) > 0:
|
||||
item = val[0]
|
||||
print(f" Item 0 keys: {item.keys()}")
|
||||
if 'tracks' in item:
|
||||
print(f" Tracks length: {len(item['tracks'])}")
|
||||
if len(item['tracks']) > 0:
|
||||
print(f" Track 0 keys: {item['tracks'][0].keys()}")
|
||||
print(f" Track 0 sample: {item['tracks'][0]}")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
Loading…
Reference in a new issue