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') {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
- 29a26da9|||PR AP56e: guard hidden show helpers during session syncTracker
- 7c9ec236|||PR AP56e: re-vendor Hybriel set day56 (source 36ae83a8, bin c1f595a2)Tracker
- 4b54f6f9Merge branch 'records-audit' into mainTracker
- cab4a3bc|||PR records: branch audit, PR-onlyTracker
- 641e1c4cMerge branch 'records-dp71' into mainTracker
- 85a6e9f5|||PR records: DP71 checked in ChromeTracker
- f5be5f18records: gitoria PR-only planTracker
- 46a37036records: DP71 liveTracker
- 3bcb7039Status/log: DP71 in progressTracker
- 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker
- 783957c2Merge branch 'sr1-search' into mainTracker
- 792b9652README: search results come from the routeTracker
- fd8570b1|||PR search: one server exchange per keystrokeTracker
- e8f5cbcaLog: SR1 result, SR1bTracker
- 8ad275a4Log/status: tracker 68, SR1Tracker
- f5a06a0fLog: gitoria push setup, SR1Tracker
- d6b109baMission SR1mre
- 608b7558Log: FF1 merged via PR #1mre
- 2939d94cMerge branch 'ff1-gate-failfast' into mainTracker
- c934361a|||PR tests: gates fail fast when the app exits during startmre