tracker
All repositories: gitoria
1.1 KB
// tools/count-kinds.hl — mission 068 (tracker#21): the TV titles per stored kind, per TMDB type, per `kindCheck`, public or not, and// 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// its files): TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel tools/count-kinds.hlimport { showsTable, hasShowGenre, titleKind } from '../lib/shows.hl'counts = {}bump = (&key) => {counts[key] = counts[key] == null ? 1 : counts[key] + 1return null}byType = []for (s of showsTable.find(null, null)) {if (s.type == 'series') {let pub = s.adult == false ? 'public' : 'hidden'bump('kind ' + (s.kind != null ? s.kind : 'none') + ' (' + pub + ')')bump('titleKind ' + titleKind(&s) + ' (' + pub + ')')bump('tmdbType ' + (s.tmdbType != null ? s.tmdbType : 'none'))if (s.kindCheck != null) { bump('kindCheck ' + s.kindCheck) }if (titleKind(&s) == 'show' && !hasShowGenre(&s.genres)) { byType.push(s.title + ' [' + s.tmdbType + ']') }}}for (k of counts.keys()) { print(k + ': ' + counts[k]) }print('shows by TMDB type alone (' + byType.length + '): ' + byType.join(', '))
Branches
Latest commits
- 4399bc2fReference remaining component-owned root Style rulesmre
- aed12917Reference owned Style rules in genres and searchmre
- 78ee6b56Move remaining component styles into Style blocksmre
- 7f04de33log: HM49Bmre
- 00616cf3log: #49 batch merged, DP67 startedmre
- d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmre
- 079f376dMove seven components' styles into Style blocksmre
- 17d66feelog: #58 mergedmre
- 69a6640bMerge hm58-map: tracker#58 project.hl only the mapmre
- a85f7900Move route logic out of the project mapmre
- 13dea5belog: #56 live, HM49 and HM58 startedmre
- a31c8f2fdocs: tracker#36 remaining listmre
- 975d06d1log: #36 live, DP66 startedmre
- d6d03fa3mission: T36Bmre
- e7512d00status: #36 rolled back, retry askedmre
- c98e2043log: T36A rollbackmre
- ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
- 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
- 55257852log: #53 live, #56 mergedmre
- 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre