gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3da2ea863da2ea86RV48: report day48 cold starts, gates and cleanupmre3da2ea86/tools/count-kinds.hl

1.1 KB

  1. // tools/count-kinds.hl — mission 068 (tracker#21): the TV titles per stored kind, per TMDB type, per `kindCheck`, public or not, and
  2. // every title that is a SHOW by its TMDB type alone (no show genre). ONLY on a COPY or the stopped app (opening a table rewrites
  3. // its files): TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel tools/count-kinds.hl
  4. import { showsTable, hasShowGenre, titleKind } from '../lib/shows.hl'
  5. counts = {}
  6. bump = (&key) => {
  7. counts[key] = counts[key] == null ? 1 : counts[key] + 1
  8. return null
  9. }
  10. byType = []
  11. for (s of showsTable.find(null, null)) {
  12. if (s.type == 'series') {
  13. pub = s.adult == false ? 'public' : 'hidden'
  14. bump('kind ' + (s.kind != null ? s.kind : 'none') + ' (' + pub + ')')
  15. bump('titleKind ' + titleKind(&s) + ' (' + pub + ')')
  16. bump('tmdbType ' + (s.tmdbType != null ? s.tmdbType : 'none'))
  17. if (s.kindCheck != null) { bump('kindCheck ' + s.kindCheck) }
  18. if (titleKind(&s) == 'show' && !hasShowGenre(&s.genres)) { byType.push(s.title + ' [' + s.tmdbType + ']') }
  19. }
  20. }
  21. for (k of counts.keys()) { print(k + ': ' + counts[k]) }
  22. print('shows by TMDB type alone (' + byType.length + '): ' + byType.join(', '))

Branches

Latest commits

  • 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
  • 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
  • 4a802ae7status: RV48 runningmre
  • 0a5412b6RV48 brief, day48 outmre
  • 56665efelog: CB69 mergedmre
  • 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
  • e55b379dKeep shared app title independent of the route import graphmre
  • 9a99659blog: hybriel#334, batch waits for day48mre
  • 85fa6c9blog: CB68 result, CB69 startedmre
  • 2f07c1b7log: DP68 boot gate failed, CB68mre
  • 9652782dlog: HM59 merged, DP68 startedmre
  • 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
  • f7bfe90bMove remaining page builders into their topicsmre
  • 7c3991f9log: day46 from Antonmre
  • ec54fc35Move show page logic into the shows topicmre
  • c1a8d074log: correct timesmre
  • 5827eba9log: HM57 merged, HM59 startedmre
  • d1a91be9Merge hm57-let: tracker#57 let only for reassigned namesmre
  • a404ed75Report HM57 audit, gates and integration notesmre
  • 1dcb87a7Use plain declarations for unchanged bindingsmre