Feat: Final polish for deployment - Fallbacks and UI consistency

This commit is contained in:
Your Name 2026-01-01 14:09:21 +07:00
parent e63a9c664c
commit 2a893f89d6

19
debug_browse.py Normal file
View 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)