Implemented a function to retrieve IDs from the first 20 pages of all movie and TV show lists on TMDB. Since only IDs are needed, I used the en-US language parameter to optimize TMDB's caching. This function generates a sitemap with these IDs and creates static pages for the corresponding movies/TV shows. The current build creates 17,654 static pages, increasing the build time to around 1 minute and 30 seconds on my PC. However, due to TMDB's rate limiting (40 requests per 10s), this solution cannot include all movies and TV shows from TMDB.
Issue ticket number and link
Fixes: PLO-44
Checklist before requesting a review
[ ] I have performed a self-review of my code
[ ] If it's an essential feature, I've tested it thoroughly.
[ ] Do we need to implement analytics?
[ ] Will this be part of a product update? If yes, please write one phrase about this update.
Describe your changes
Implemented a function to retrieve IDs from the first 20 pages of all movie and TV show lists on TMDB. Since only IDs are needed, I used the en-US language parameter to optimize TMDB's caching. This function generates a sitemap with these IDs and creates static pages for the corresponding movies/TV shows. The current build creates 17,654 static pages, increasing the build time to around 1 minute and 30 seconds on my PC. However, due to TMDB's rate limiting (40 requests per 10s), this solution cannot include all movies and TV shows from TMDB.
Issue ticket number and link
Fixes: PLO-44
Checklist before requesting a review