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
- c9e29e06Merge branch 'rv39'mre
- 0f8d1fdclog: RV39 report, browser 387/2mre
- 50249b0bRV39: reportmre
- 10ed9581compose: HL_GC_STATS=1mre
- 955da19bRV39: re-vendor Hybriel set day39 (source 51e921d7, bin 6b481aa7)mre
- 64b8d1dclog: RV39 startedmre
- 1f2df72amission RV39mre
- 6c1936f9log+status: GC planmre
- 2846a840log: m569 result, GC hypothesismre
- b24cd2d5log: Anton on hl:fetch, mission 569mre
- 7d42cac1log+status: SL1 measured, fetch stalls remainmre
- 8e5f2ceflog: SL1 deployedmre
- 29f34212log: SL1 deploy startedmre
- 529dd741Merge sl1-slices: slice details repair and person fill (SL1)mre
- 8a83316blog: SL1 result, session drain slowermre
- 35e93e8dSL1: slice the details repair and person fill: catalog lists changed in place, 40 ms fill steps, people created in steps, writes one table per tickmre
- 72c9119flog+status: SL1 startedmre
- d74620fcmission SL1: slice repair and person fillmre
- 5d542d73log+status: ST1 resultmre
- 3945eb81ST1: stall diagnosis reportmre