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
- d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
- 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