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
- ce6d7d32Merge rv48: Hybriel day48mre
- 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
- 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
- 4a802ae7status: RV48 runningmre
- 0a5412b6RV48 brief, day48 outmre
- 56665efelog: CB69 mergedmre
- 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
- e55b379dKeep shared app title independent of the route import graphmre
- 9a99659blog: hybriel#334, batch waits for day48mre
- 85fa6c9blog: CB68 result, CB69 startedmre
- 2f07c1b7log: DP68 boot gate failed, CB68mre
- 9652782dlog: HM59 merged, DP68 startedmre
- 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
- f7bfe90bMove remaining page builders into their topicsmre
- 7c3991f9log: day46 from Antonmre
- ec54fc35Move show page logic into the shows topicmre
- c1a8d074log: correct timesmre
- 5827eba9log: HM57 merged, HM59 startedmre
- d1a91be9Merge hm57-let: tracker#57 let only for reassigned namesmre
- a404ed75Report HM57 audit, gates and integration notesmre