gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2047955b2047955bMerge branch 'u12-gateports' into mainTracker2047955b/tests/peek-tmdbfix.hl

1.5 KB

  1. // tests/peek-tmdbfix.hl — prints what tests/tmdbfix.mjs compares: every title's TMDB id / year fields, and what hangs on the records
  2. import { MPackDB } from 'hl:mpackdb'
  3. import { env } from 'hl:proc'
  4. storageDir = env('TRACKER_STORAGE')
  5. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  6. showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])
  7. seasonsTable = new MPackDB(file = storageDir + '/seasons.db', primaryKey = '@id', indexes = ['!oldId'])
  8. episodesTable = new MPackDB(file = storageDir + '/episodes.db', primaryKey = '@id', indexes = ['!oldId'])
  9. watchesTable = new MPackDB(file = storageDir + '/watches.db', primaryKey = '@id', indexes = ['!oldId'])
  10. followsTable = new MPackDB(file = storageDir + '/follows.db', primaryKey = '@id', indexes = ['!oldId'])
  11. for (s of showsTable.find(null, null)) {
  12. console.log('show ' + JSON.stringify({ id = s.id slug = s.urlSegment tmdbId = s.tmdbId year = s.year migratedYear = s.migratedYear release = s.release migratedRelease = s.migratedRelease tmdbIdWas = s.tmdbIdWas adultCheck = s.adultCheck }))
  13. }
  14. nSeasons = 0
  15. for (x of seasonsTable.find(null, null)) { nSeasons = nSeasons + 1 }
  16. nEpisodes = 0
  17. for (x of episodesTable.find(null, null)) { nEpisodes = nEpisodes + 1 }
  18. for (w of watchesTable.find(null, null)) { console.log('watch ' + w.id + ' ' + w.targetType + ' ' + w.target) }
  19. for (f of followsTable.find(null, null)) { console.log('follow ' + f.id + ' ' + f.show) }
  20. console.log('counts seasons=' + nSeasons + ' episodes=' + nEpisodes)

Branches

Latest commits

  • 2047955bMerge branch 'u12-gateports' into mainTracker
  • 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