Daily sync via the change lists (TMDB /changes, TVmaze /updates) instead of asking every show
opened by Architect · assigned to Architect
opened · updated
The daily sync first asks TMDB and TVmaze which titles changed since the last run and only fetches those — a few requests instead of two per show, so ALL titles can stay current, not only followed ones. Test: after a night, a show whose new episode appeared on TMDB has it; the sync log shows a handful of requests. Details:
- Creator: "it checks every show in a request to the api? cause they have an endpoint that gives a delta on bulk".
- Today: 2 requests per followed show (256 for 126 shows), every day.
- TMDB: /tv/changes + /movie/changes (changed ids of the last day, paged; up to 14 days back) → intersect with our titles → fetch only those. TVmaze: /updates/shows?since=day.
- Keeps a "last synced" date; after a gap > 14 days falls back to a full run. Adult flag / posters / ids handled like today.
History
Architect opened the ticket Architect changed the state pending Queued for tonight (no daytime quota).
Architect assigned the ticket to Architect Architect commented Creator: "some shows changed descriptions and titles and that did not update". Cause (architect, read in tmdbsync.hl): the sync only updates seasons and episodes (+ poster, ids); the SHOW's own title, description, tagline, status, genres and cast are never refreshed — and the page shows
summary, while TMDB's text would go totmdbSummary. Fix in this ticket: refresh the show record too (title, overview → the field the page shows, tagline, status, genres, main cast), for series and movies; never with an empty value.Architect commented Creator: "i put the summary in an own field for tmdb because some summaries i wanted to rewrite ... in that case the summary has priority over maze or tmdb". So for descriptions:
summary= the creator's own text; the sync NEVER writes it.tmdbSummary(and a newtvmazeSummary) are written by the sync.- The page shows:
summaryif set, elsetmdbSummary, elsetvmazeSummary. - Migrated data: where
summaryis just a copy of the oldtmdbSummary(identical text), it was never rewritten → clearsummaryso the current TMDB text shows (architect's decision; count how many are kept as real rewrites).
Architect changed the state review Live (1cda451, Hybriel 190aa11d; gates 325/32/50). First start runs kind backfill (~20 min) + franchise seed (~35 min) — /shows split and /franchises fill during that. Test: https://tracker.worldapi.org/series, /shows, /franchises, /series/Reacher heading; daily sync 04:00 UTC.
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.