gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf88ae8b9f88ae8b9|||PR records: day56 toggle live, reviewTrackerf88ae8b9/tests/paths-m039.hl

1.1 KB

  1. // tests/paths-m039.hl — GATE TOOL for tracker#39 (mission 032): the sync of ONE series (sync.hl syncShow) against the fake TMDB,
  2. // app STOPPED (hybriel#21): Double Episode Series (tv 1305) after the merge. TMDB lists S1 9101 9102 9103 and S2 9301 — S2's
  3. // migrated E1 carries the replaced id 9201: it must be ADOPTED by its number (no second S2E1), S1 gets only the new E3.
  4. // Prints `sync39 …` (the counts) and one `ep39 <s>x<e> <tmdbId> <migratedTmdbId> <title>` line per live listed episode.
  5. import { syncShow, persistSync } from '../lib/sync.hl'
  6. import { showsTable, seasonsTable, episodesTable } from '../lib/shows.hl'
  7. let sid = null
  8. for (s of showsTable.find(null, null)) { if (s.tmdbId == 1305 && s.mergedInto == null) { sid = s.id } }
  9. r = syncShow(&sid)
  10. persistSync()
  11. console.log('sync39 newSeasons=' + r.newSeasons + ' newEpisodes=' + r.newEpisodes + ' updatedEpisodes=' + r.updatedEpisodes + ' errors=' + r.errors + ' ' + r.error)
  12. show = showsTable.fetch(sid)
  13. for (x of show.seasons) {
  14. let se = seasonsTable.fetch(x)
  15. for (eid of se.episodes) {
  16. let e = episodesTable.fetch(eid)
  17. console.log('ep39 ' + e.seasonNumber + 'x' + e.episodeNumber + ' ' + e.tmdbId + ' ' + e.migratedTmdbId + ' ' + e.title)
  18. }
  19. }

Branches

Latest commits

  • 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
  • 46a37036records: DP71 liveTracker
  • 3bcb7039Status/log: DP71 in progressTracker
  • 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker
  • 783957c2Merge branch 'sr1-search' into mainTracker
  • 792b9652README: search results come from the routeTracker
  • fd8570b1|||PR search: one server exchange per keystrokeTracker
  • e8f5cbcaLog: SR1 result, SR1bTracker
  • 8ad275a4Log/status: tracker 68, SR1Tracker
  • f5a06a0fLog: gitoria push setup, SR1Tracker
  • d6b109baMission SR1mre
  • 608b7558Log: FF1 merged via PR #1mre