gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6a6d71ea6a6d71eaLog: gitoria membershipmre6a6d71ea/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

  • 6a6d71eaLog: gitoria membershipmre
  • 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
  • 6bb7c20estatus: window 2026-11-09mre
  • 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
  • e84586a7Mission AP56bmre
  • 15917f03Record PR workflow rule (gitoria#50)mre
  • 942ac995status: paused workers statemre
  • 44b934e5log: respawn cleanupmre
  • 03a80097Log: Anton GC A/Bmre
  • c7cdef62Log: Apollo STOP, workers pausedmre
  • d0c083fbLog: usage stopmre
  • c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
  • 1eb6f1a1Missions AP56, BS1mre
  • 4871f8adLog: AP52 live on day52, browser gate greenmre
  • d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
  • c4a60ef2Log: RT52 retest passed, AP52 startedmre
  • 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
  • 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre
  • 3bb4ccddAP52: modal close button refers to its nested rule with Style.buttonModalX (tracker#51, hybriel#333)mre
  • ba16933fAP52: login callback and title route are static handlers taking the server as third argument (tracker#58, hybriel#332)mre