gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite55b379de55b379dKeep shared app title independent of the route import graphmree55b379d/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

  • e55b379dKeep shared app title independent of the route import graphmre
  • 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
  • b90395e3log: HM51 mergedmre
  • 9888d076Merge hm51-classes: tracker#51 views use Style referencesmre
  • 4399bc2fReference remaining component-owned root Style rulesmre
  • 9edcc2dflog: #58 live, HM57 startedmre
  • 73fa20ddMerge hm49b-styles: tracker#49 rest of the component stylesmre
  • aed12917Reference owned Style rules in genres and searchmre
  • 14195720log: HM49B done, HM51 startedmre