feat(discover): implement multi-region discovery and filtering #2260
+220
−57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(discover): implement multi-region discovery and filtering
with_origin_countrywhen multiple regions are selectedfilterResultshelper to manually filter Trending/Upcoming results by both Origin Country and Original LanguageDescription
This PR implements Multi-Region Discovery and Filtering, allowing users to select multiple countries in the "Discover Region" setting. This ensures that content from all selected regions is visible in Discover, Trending, and Popular feeds.
AI Disclosure
AI was used (Gemini 3 Pro, High, via Antigravity) for code generation and refactoring with heavy human supervision throughout and manual verification of all logic.
Q: Why do I think this was okay in this context?
A: The changes made are relatively simple to the frontend and API logic without interfering with other systems.
Key Changes
Frontend
RegionSelector:US|GB).Backend
TheMovieDb:getDiscoverMoviesandgetDiscoverTvto use thewith_origin_countryparameter when multiple regions are selected.filterResultshelper for endpoints that don't support simultaneous region/language filtering (like Trending).originalLanguagesetting (e.g., hiding Chinese content when English is selected).Fixes:
How Has This Been Tested?
I have tested this manually in a local development environment and verified with static analysis tools.
Manual Verification
US|GB).Automated Checks
pnpm typecheck(Client & Server)pnpm lintScreenshots / Logs (if applicable)
Checklist:
pnpm buildpnpm i18n:extract