get_top_similar_artists now accepts require_source parameter to filter by source ID in SQL. Previously fetched 200 artists then post-filtered, but cycling logic (last_featured ASC) rotated artists without IDs to the front, causing all 200 to be filtered out. Both /api/discover/hero and /api/discover/similar-artists now pass require_source=active_source so only artists with valid IDs are returned. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| music_database.py | ||
| music_library.db | ||