gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit7ef3cb3b7ef3cb3bMerge branch 'records-st55' into mainTracker7ef3cb3b/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

  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker
  • b9c7c3c8Merge branch 'records-dp74' into mainTracker
  • 85cfb4ae|||PR records: AP61 day61, DP74 liveTracker
  • b1496147Merge branch 'ap61' into mainTracker
  • 2047955bMerge branch 'u12-gateports' into mainTracker
  • c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Tracker
  • 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker