gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf29e2502f29e2502log: RV39 gate fixmref29e2502/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

  • f29e2502log: RV39 gate fixmre
  • ad529ac1log: m572 verdictmre
  • 1b37d404RV39 on hold: hybriel#308mre
  • f9127c68Revert "Merge branch 'rv39'"mre
  • cd39f3d3log: hybriel#308mre
  • 51341d6elog: RV39 deploy startedmre
  • c9e29e06Merge branch 'rv39'mre
  • 0f8d1fdclog: RV39 report, browser 387/2mre
  • 50249b0bRV39: reportmre
  • 10ed9581compose: HL_GC_STATS=1mre
  • 955da19bRV39: re-vendor Hybriel set day39 (source 51e921d7, bin 6b481aa7)mre
  • 64b8d1dclog: RV39 startedmre
  • 1f2df72amission RV39mre
  • 6c1936f9log+status: GC planmre
  • 2846a840log: m569 result, GC hypothesismre
  • b24cd2d5log: Anton on hl:fetch, mission 569mre
  • 7d42cac1log+status: SL1 measured, fetch stalls remainmre
  • 8e5f2ceflog: SL1 deployedmre
  • 29f34212log: SL1 deploy startedmre
  • 529dd741Merge sl1-slices: slice details repair and person fill (SL1)mre