JoosepAlviste/serieslist

Make series and season syncing more intelligent

JoosepAlviste opened this issue · 0 comments

Problem

We are currently making a lot of unnecessary requests to the TMDB API because we are syncing ALL series and ALL seasons every 7 days. Some series are not active anymore and can only be synced once per month, for example. Also, we don't need to sync all seasons every time as the finished seasons are unlikely to change. Maybe we could only sync finished seasons every half a year?

Solution

We need to figure out the EXACT rules to follow when syncing series.

Ideas so far:

  • Seasons
    • Finished seasons: every 6 months
    • Current & future seasons (maybe with episodes in the last year?): every week
  • Series
    • Finished series (status Ended in TMDB): every 3 months
    • Current & future series: every week

We might need to save the statuses of series, the dates of seasons (maybe? or we get that information from the episodes).