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
- 57d1c0dcLog: day50 retest requestmre
- 60b1f419Log: Anton #336 result, wake checkmre
- 919a18aalog: scratchmre
- 6b504440status tidymre
- 9332bd10log: DP70 livemre
- be11daa0DP70 brief fixmre
- 886a7028DP70 brief, HM67 mergedmre
- b41cdd6dMerge hm67-searchids: packed search IDsmre
- 385904eaReport HM67 matched heap measurements and gate proofmre
- e5c9b659Pack retained search IDs into UTF-8 bytesmre
- 62a5f6c7HM67 brief, HM66 mergedmre
- b32b8440Merge hm66-catalogindex: packed catalog indexmre
- 2db0f7adReport HM66 heap measurements and validationmre
- 6ce15623Pack catalog lists and membership maps in UTF-8 bytesmre
- 71134e21HM66 briefmre
- ed4cbab2status timemre
- e982c26dlog: HM65 mergedmre
- 6e72f9d1Merge hm65-fields: episode boot scan reads three fieldsmre
- 07a5c883HM65 report measured field projection and complete validationmre
- 0eab858fRead only catalog date fields during the episode boot scanmre