tracker
All repositories: gitoria
1.1 KB
// tests/paths-m039.hl — GATE TOOL for tracker#39 (mission 032): the sync of ONE series (sync.hl syncShow) against the fake TMDB,// app STOPPED (hybriel#21): Double Episode Series (tv 1305) after the merge. TMDB lists S1 9101 9102 9103 and S2 9301 — S2's// migrated E1 carries the replaced id 9201: it must be ADOPTED by its number (no second S2E1), S1 gets only the new E3.// Prints `sync39 …` (the counts) and one `ep39 <s>x<e> <tmdbId> <migratedTmdbId> <title>` line per live listed episode.import { syncShow, persistSync } from '../lib/sync.hl'import { showsTable, seasonsTable, episodesTable } from '../lib/shows.hl'let sid = nullfor (s of showsTable.find(null, null)) { if (s.tmdbId == 1305 && s.mergedInto == null) { sid = s.id } }r = syncShow(&sid)persistSync()console.log('sync39 newSeasons=' + r.newSeasons + ' newEpisodes=' + r.newEpisodes + ' updatedEpisodes=' + r.updatedEpisodes + ' errors=' + r.errors + ' ' + r.error)show = showsTable.fetch(sid)for (x of show.seasons) {let se = seasonsTable.fetch(x)for (eid of se.episodes) {let e = episodesTable.fetch(eid)console.log('ep39 ' + e.seasonNumber + 'x' + e.episodeNumber + ' ' + e.tmdbId + ' ' + e.migratedTmdbId + ' ' + e.title)}}
Branches
Latest commits
- 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
- 0b86324aMerge branch 'records-dp73' into mainTracker
- 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
- 613ae0ecMerge branch 'bs3' into mainTracker
- 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
- 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
- 310613f1Merge branch 'records-dp72' into mainTracker
- 6f7b61ba|||PR records: deploy-swap fix live, Kunibert findingsTracker
- c41587d2Merge branch 'bs2' into mainTracker
- 0dd538a6|||PR BS2: finish the boot index in slices so a booting instance keeps answeringTracker
- 019d5cedMerge branch 'records-1110' into mainTracker
- f88ae8b9|||PR records: day56 toggle live, reviewTracker
- b6b3bb4dMerge branch 'ap56e' into mainTracker
- 29a26da9|||PR AP56e: guard hidden show helpers during session syncTracker
- 7c9ec236|||PR AP56e: re-vendor Hybriel set day56 (source 36ae83a8, bin c1f595a2)Tracker
- 4b54f6f9Merge branch 'records-audit' into mainTracker
- cab4a3bc|||PR records: branch audit, PR-onlyTracker
- 641e1c4cMerge branch 'records-dp71' into mainTracker
- 85a6e9f5|||PR records: DP71 checked in ChromeTracker
- f5be5f18records: gitoria PR-only planTracker