tracker
All repositories: gitoria
3.4 KB
# w049 — tracker.worldapi.org#12: link icons to TMDB, IMDb, TheTVDB, TVmazeThe link icons are built and the sync now fills missing ids. The gate passes all checks. I have not committed or deployed anything.**Files** (loreana:/media/STORAGE/projects/tracker.worldapi.org):- `components/show.hl`: the `linkRows` and `showLinks` badges.- `shows.hl`: `externalLinksOf`.- `styles.hl`: `showLinks` and `a.extlink`.- `tmdbsync.hl`:- `external_ids` is now appended to the details request.- `externalIdsFor` fills missing ids and never overwrites one.- `tvmazeLookup` asks by imdb first, then by thetvdb.- `syncMovie`, plus `pauseMsAfter` and the new `ids`/`tvmazeRequests` totals.- `project.hl` and `tools/sync-tmdb.hl`: both runners now pause with `pauseMsAfter`.- New: `tools/count-external-ids.hl`.- Tests: `tests/faketmdb.mjs` (external_ids, `/movie/`, a fake TVmaze under `/tvmaze`), `tests/seed-show.hl` (partial ids, a movie), `tests/browser.mjs` (+10 checks).- `README.md` (step 12, config, Test, Files) and `STATUS.md` (new entry on top).**Gate:**```TRACKER_GATE_SHOTS=/tmp/w049/shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 TRACKER_GATE_TMDB_PORT=8727 node tests/browser.mjs111 passed, 0 failed```What the gate proves:- Icons appear only for the ids a show has, with the exact hrefs, `_blank` and `noopener`.- A click opens a new tab that cannot reach this one (CDP `canAccessOpener` false), and the page stays where it is.- The icons also show after client-side navigation, in the right place at 390 and 1280 px.- The sync fills the missing ids and keeps the stored ones even where TMDB has different ones (tt0000001, 4002).- TVmaze: an imdb hit, and an imdb 404 followed by a thetvdb hit. A second run makes no TVmaze request and fills no ids.- The movie is only requested via `/movie/`.**Bug found and fixed:** the #9 sync fetched movies as `/tv/<tmdbId>`, which is a different title on TMDB. Now a movie gets one `/movie/<id>?append_to_response=external_ids` request, which fills its imdbId and poster. The live record for Star Trek: First Contact still holds TV show 199's `tmdbSummary` ("Kabuhayang Swak na Swak…") and `status = 'Ended'`. That is not visible, because the page shows `summary`. A one-off data fix is the architect's call.**Real data** (copy of the live storage taken ~06:20, deleted afterwards):| | shows | imdbId | tvdbId | tvmzId (before → after) ||---|---|---|---|---|| followed series | 125 | 125 | 125 | 123 → 124 || followed movie | 1 | 1 | – | – || all series | 1639 | 907 | 910 | 845 → 846 || all movies | 7814 | 379 | – | – |- All shows have a tmdbId.- One sync run: `shows=126 posters=1 ids=1 requests=256 tvmazeRequests=4 errors=0`, 105.6 s.- Greek Salad got its TVmaze id (60613). TVmaze knows neither id of Mapping the World.- TMDB's external ids match all 125 stored imdb and tvdb ids.**Screenshots** (all looked at):- Gate: `/tmp/w049/shots/` (show-390/1280, synced-show{,-390}, synced-movie{,-390}).- Real data: `/tmp/w049/real/{The-Librarians-The-Next-Chapter,Greek-SaladSalade-grecque,Star-Trek-First-Contact}-{390,1280}.png`.- Show pages loaded in 0.13 to 0.18 s (the Librarians' first, cold load 1.08 s), with no console problems.**Open points:**- A real-phone tap test after deploy.- The Star Trek: First Contact data fix above.- Shows nobody follows never get ids filled; the sync only covers followed shows, by design.**Hybriel issues:** none.
Branches
Latest commits
- 079f376dMove seven components' styles into Style blocksmre
- 13dea5belog: #56 live, HM49 and HM58 startedmre
- a31c8f2fdocs: tracker#36 remaining listmre
- 975d06d1log: #36 live, DP66 startedmre
- d6d03fa3mission: T36Bmre
- e7512d00status: #36 rolled back, retry askedmre
- c98e2043log: T36A rollbackmre
- ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
- 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
- 55257852log: #53 live, #56 mergedmre
- 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
- 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
- 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
- 6da612fclog: T36A tool defectmre
- d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
- 08e55255log: HM56 done, T36A startedmre
- 91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre
- 5fd2ac75status: #36 GOmre
- 0d253b45mission: T36Amre
- 2aa22d23log: #36 GOmre