gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit08e5525508e55255log: HM56 done, T36A startedmre08e55255/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. let 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

  • 08e55255log: HM56 done, T36A startedmre
  • 5fd2ac75status: #36 GOmre
  • 0d253b45mission: T36Amre
  • 2aa22d23log: #36 GOmre
  • 833aee2flog: #50 closed, HM56 startedmre
  • ac58c1e5mission: HM56mre
  • 58979c0clog: HM54 held for decision, DP65 startedmre
  • bb2ebc67log: #64 live, #53 mergedmre
  • 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
  • 2156cc7flog: HM54 reviewmre
  • 9fb82efclog: HM54 gap, fill continuesmre
  • b632eb8dlog: HM53 done, HM54 startedmre
  • ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
  • 3356fcfclog: #52 blocked, HM53 startedmre
  • 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
  • 73010cc0HM52: report replace-navigation search draft regressionmre
  • 1742e92bstatus: DP64 and HM52 runningmre
  • 29ad5b58log: #64 merged, DP64 and HM52 startedmre
  • fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
  • b2e2206dlog: #63 livemre