tracker
All repositories: gitoria
2.4 KB
// tests/seed-art.hl — GATE FIXTURE for mission 032 (tracker#33 The Remaining: a title TMDB has no poster for; tracker#37: people// without a photo), written by tests/browser.mjs into the gate's storage while the app is STOPPED (hybriel#21):// Backdrop Gate Movie (movie 1401): public, no poster file, no runtime — the fake TMDB has no poster, a backdrop, runtime 135// Backdrop Gate Series (tv 1402): public, no poster file — the fake TMDB has no poster, a backdrop// Photo Gate Person (TMDB 3401: has a photo), Faceless Person (3402: none), Unknown Person (3403: TMDB 404) — no photo source,// added "in the future" so they head /peopleimport { MPackDB } from 'hl:mpackdb'import { env } from 'hl:proc'import { now } from 'hl:time'storageDir = env('TRACKER_STORAGE')if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])personsTable = new MPackDB(file = storageDir + '/persons.db', primaryKey = '@id', indexes = ['!oldId'])title = (id, tmdbId, type, name, slug, oldId) => {showsTable.put({ adult = false id = id title = name summary = null tmdbSummary = 'no poster at TMDB' tmdbId = tmdbIdlanguage = 'fi' type = type release = '2026-09-17' year = 2026 image = null urlSegment = slugepisodesCount = null homepage = null imdbId = null seasonsCount = null status = 'Released' tagline = nulltvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = oldId kind = type == 'series' ? 'series' : nullcreditsAt = 1 detailsAt = 1 tmdbSync = 1 })return true}title('art0000000000mv1', 1401, 'movie', 'Backdrop Gate Movie', 'Backdrop-Gate-Movie', 'tmdb-movie-1401')title('art0000000000tv1', 1402, 'series', 'Backdrop Gate Series', 'Backdrop-Gate-Series', 'tmdb-tv-1402')later = now() + 86400000person = (id, name, slug, tmdbId, n) => {personsTable.put({ id = id name = name urlSegment = slug tmdbId = tmdbId oldId = 'tmdb-person-' + tmdbId gender = 0 image = null tmdbProfile = nulladult = false shows = [] added = later + n })return true}person('art00000000000p1', 'Photo Gate Person', 'Photo-Gate-Person', 3401, 3)person('art00000000000p2', 'Faceless Person', 'Faceless-Person', 3402, 2)person('art00000000000p3', 'Unknown Person', 'Unknown-Person', 3403, 1)showsTable.persist()personsTable.persist()console.log('seed-art: 2 titles without a poster, 3 people without a photo')
Branches
Latest commits
- 28eab08cMerge branch 'records-hm55' into mainTracker
- d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
- 3059f86cMerge branch 'records-design-rule' into mainTracker
- 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
- d1390692Merge branch 'records-dp75b' into mainTracker
- a4d1a7d2|||PR records: later steps checked, branch auditTracker
- e070e16fMerge branch 'records-dp75' into mainTracker
- 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
- bfc4ea4dMerge branch 'ap62' into mainTracker
- 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker
- b9c7c3c8Merge branch 'records-dp74' into mainTracker
- 85cfb4ae|||PR records: AP61 day61, DP74 liveTracker
- b1496147Merge branch 'ap61' into mainTracker
- 2047955bMerge branch 'u12-gateports' into mainTracker
- c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Tracker
- 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
- 0b86324aMerge branch 'records-dp73' into mainTracker
- 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
- 613ae0ecMerge branch 'bs3' into mainTracker
- 1383264b|||PR BS3: keep shared synchronous sorting fastTracker