The general/curated rails (Popular/Trending/Top Rated + genre/decade) pull TMDB's GLOBAL lists, flooding feeds with foreign-language titles (Bollywood). Add a multi-language preference: - _disc_map now carries original_language (+ popularity) on each item. - discover_languages setting (default 'en'); /discover/list post-filters general/curated rails to it (dropping known non-preferred-language titles) and pages deeper to keep rails full. Rails with an explicit lang (the dedicated foreign rails) bypass the filter. - GET/POST /discover/languages to read/set the preference. - Removed the hardcoded lang=en on general rails (the setting drives it now). Default 'en' immediately fixes the Bollywood flood; UI to pick languages next. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| backfill.py | ||
| cache.py | ||
| clients.py | ||
| engine.py | ||
| worker.py | ||