The previous PR (#1217) was trying to filter out the collection ID, but we want to filter out the item's ID instead. If we're seeing metadata for "Black Phone", the collection will have both it and "Black Phone 2", and we only want to retrieve the second one.
This was the intention from the start but I named my vars wrong and ended up confusing myself. Sorry!
- Extract age ratings from TMDB API with regional fallback (US)
- Add age rating as first genre in metadata response
- Include IMDb parental guide link as first genre link
- Add configurable toggle for age rating display
- Implement caching for age rating data (1 hour TTL)
- Support both movies and TV shows with proper error handling
- Filter out the collection item from which we requested the collection
- Add some additional error handling and return empty array when no collection is found
- Extract age ratings from TMDB API with regional fallback (US)
- Add age rating as first genre in metadata response
- Include IMDb parental guide link as first genre link
- Add configurable toggle for age rating display
- Implement caching for age rating data (1 hour TTL)
- Support both movies and TV shows with proper error handling
- Add HTTP client with proxy support for TMDB API calls
- Create TMDBClient wrapper extending moviedb-promise with proxy integration
- Update all TMDB API modules to use new proxy-enabled client
- Add proxy configuration via environment variables:
* TMDB_PROXY_ENABLED - Enable/disable proxy
* TMDB_PROXY_HOST - Proxy host address
* TMDB_PROXY_PORT - Proxy port
* TMDB_PROXY_PROTOCOL - Proxy protocol (http, https, socks4, socks5)
* TMDB_PROXY_AUTH - Enable proxy authentication
* TMDB_PROXY_USERNAME - Proxy username
* TMDB_PROXY_PASSWORD - Proxy password
- Add proxy status endpoint (/api/proxy/status) for monitoring
- Create test script (npm run test:proxy) for proxy verification
- Add comprehensive documentation:
* PROXY_SETUP.md - User guide for proxy configuration
* docs/proxy-implementation.md - Technical implementation details (English)
* env.example - Environment variables template (English)
* docker-compose.proxy.yml - Docker setup with Cloudflare WARP
- Update README.md with proxy support section
- Add logging when proxy is used for TMDB requests
- Support selective proxy usage (only TMDB domains use proxy)
- Maintain backward compatibility with existing configurations
- Translate all Portuguese text to English for international consistency
This resolves the issue where TMDB is blocked at network level in India,
allowing users to host the addon on Indian VPS providers while accessing
TMDB through a proxy. Based on similar implementation in AIOStreams.
Closes: Optional proxy for TMDB API calls (workaround for Indian VPS block) #1208