plotwist-app / plotwist

Open-source easy management and reviews of your movies, series and animes.
https://plotwist.app
224 stars 11 forks source link

feat(sitemap): update movies/tv-series sitemap generation logic #159

Closed lui7henrique closed 1 month ago

lui7henrique commented 1 month ago

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

linear[bot] commented 1 month ago

PLO-44 Improvement: Split sitemap between movies/tv-series

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plotwist ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2024 2:47pm