gitoriaLog in with ident

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit65c694a865c694a8tracker#14: search — header magnifier, /search/<text> (in-memory word-prefix index over titles + people), Fetch from web (TMDB search/multi, ours left out), Add = import via syncShow; gate +25 checks, real-data scriptmre65c694a8/tmdbsync.hl

19.7 KB

  1. // tmdbsync.hl — THE TMDB SYNC (tracker.worldapi.org#9): for every show SOMEONE follows, fetch the show's
  2. // details, seasons and episodes from TMDB and bring storage/mpackdb/ up to date, plus the show's poster.
  3. // Used by BOTH runners: the daily run inside the app (project.hl `syncTick`, one show per step) and the
  4. // command-line tool (tools/sync-tmdb.hl). Reference for the API use: the old tracker's
  5. // crates/sync/commands/sync.js (read-only).
  6. //
  7. // GET <TMDB_BASE_URL>/tv/<tmdbId>?append_to_response=external_ids the details (status, counts,
  8. // overview, poster_path, seasons[])
  9. // + external_ids (imdb_id, tvdb_id)
  10. // GET <TMDB_BASE_URL>/tv/<tmdbId>?append_to_response=season/1,season/2… up to 20 seasons with their
  11. // episodes in ONE request
  12. // GET <TMDB_IMAGE_URL>/w342<poster_path> the poster → storage/mpackdb/posters/
  13. // Authorization: Bearer $TMDB_READ_TOKEN
  14. // GET <TVMAZE_BASE_URL>/lookup/shows?imdb=tt… (else ?thetvdb=<id>) the TVmaze id, ONLY when the show
  15. // has none (301 → /shows/<id>, 404 = unknown)
  16. // A MOVIE (`type = 'movie'`, 7814 of the migrated rows, 1 followed): only
  17. // GET <TMDB_BASE_URL>/movie/<tmdbId>?append_to_response=external_ids its imdb id + poster; no seasons,
  18. // status, overview (it is no TV show)
  19. //
  20. // EXTERNAL IDS (tracker.worldapi.org#12, the show page's link icons): a MISSING imdbId/tvdbId is filled from TMDB's
  21. // external_ids, a missing tvmzId from TVmaze's lookup — an id the show already has is NEVER overwritten.
  22. // RULES (ticket): new seasons/episodes are ADDED, existing ones UPDATED (title, summary, release) —
  23. // matched by tmdbId, never duplicated; NOTHING is deleted. An episode without a tmdbId (161 migrated ones)
  24. // is matched by its S/E number instead and gets the tmdbId. A season (no tmdbId in the migrated data) is
  25. // matched by (show, seasonNumber). A TMDB value that is empty/null never overwrites a stored one.
  26. // Season 0 ("Specials") is only synced for a show that already has a season 0 (else every followed show
  27. // would suddenly flood /my/unwatched with specials); a TMDB season with no episodes is not created.
  28. //
  29. // IDS ARE SELF-ASSIGNED (randomBytes, like watches.hl): hl:mpackdb's own generated @id can repeat within
  30. // one millisecond, which is what made update() lose rows (hybriel#113, fixed upstream, not in the vendored
  31. // build) — a table holding only unique ids is safe to update().
  32. //
  33. // ONE PROCESS PER STORAGE: hl:mpackdb does not coordinate two processes (hybriel#21) — the in-app run uses
  34. // the app's own open tables (imported from shows.hl); the tool only ever runs against a stopped app or a copy.
  35. //
  36. // Env: TMDB_READ_TOKEN (required unless TMDB_BASE_URL points at a fake), TMDB_BASE_URL
  37. // (https://api.themoviedb.org/3), TMDB_IMAGE_URL (https://image.tmdb.org/t/p) — the gate points both at its
  38. // fake TMDB (tests/browser.mjs).
  39. import { fetch } from 'hl:fetch'
  40. import { env } from 'hl:proc'
  41. import { now } from 'hl:time'
  42. import { randomBytes } from 'hl:crypto'
  43. import { writeFile, mkDir, exists } from 'hl:fs'
  44. import { showsTable, seasonsTable, episodesTable, storageDir } from './shows.hl'
  45. static envOr = (name, fallback) => {
  46. let v = env(name)
  47. return v != null && v.trim() != '' ? v.trim() : fallback
  48. }
  49. static tmdbBase = envOr('TMDB_BASE_URL', 'https://api.themoviedb.org/3')
  50. static tmdbImageBase = envOr('TMDB_IMAGE_URL', 'https://image.tmdb.org/t/p')
  51. static tmdbToken = envOr('TMDB_READ_TOKEN', '')
  52. static postersDir = storageDir + '/posters'
  53. static tvmazeBase = envOr('TVMAZE_BASE_URL', 'https://api.tvmaze.com')
  54. // the sync can run: a token is set (never printed) — the dev .env on Loreana has one, a gate sets its own
  55. static syncEnabled = tmdbToken != ''
  56. // TMDB allows 40 requests / 10 s: every runner waits this long per request it made before the next show
  57. static msPerRequest = 260
  58. // TVmaze allows 20 requests / 10 s (its API docs): 550 ms per lookup made
  59. static msPerTvmazeRequest = 550
  60. // how long a runner waits after a show before the next one (both runners: project.hl syncTick, tools/sync-tmdb.hl)
  61. static pauseMsAfter = (r) => { return r.requests * msPerRequest + r.tvmazeRequests * msPerTvmazeRequest }
  62. // one GET → the parsed JSON, or { failed = '<why>' }. A refused/timed-out fetch is an Error event (absorbed
  63. // by the runner's `on Error`), the fetch then yields null.
  64. static tmdbGet = (path) => {
  65. let r = fetch(tmdbBase + path, { headers = { 'authorization' = 'Bearer ' + tmdbToken 'accept' = 'application/json' 'user-agent' = 'tracker.worldapi.org (tmdb sync)' } timeoutMs = 20000 })
  66. if (r == null || r.status == null || r.status == 0) { return { failed = 'no answer for ' + path } }
  67. if (r.status != 200) { return { failed = 'HTTP ' + r.status + ' for ' + path } }
  68. let j = r.json()
  69. if (j == null) { return { failed = 'no JSON for ' + path } }
  70. return j
  71. }
  72. static textOr = (v) => { return v != null && hlTypeName(v) == 'String' && v.trim() != '' ? v : null }
  73. // ---- external ids (tracker.worldapi.org#12) -----------------------------------------------------
  74. static hasId = (v) => { return v != null && ('' + v).trim() != '' }
  75. // an IMDb id as TMDB gives it ('tt' + digits), else null
  76. static imdbOr = (v) => {
  77. let t = textOr(v)
  78. if (t == null || t.length < 3 || t.slice(0, 2) != 'tt') { return null }
  79. let i = 2
  80. while (i < t.length) {
  81. if (!'0123456789'.includes(t[i])) { return null }
  82. i = i + 1
  83. }
  84. return t
  85. }
  86. // a positive numeric id (TMDB's tvdb_id, TVmaze's id), else null
  87. static numIdOr = (v) => { return v != null && hlTypeName(v) == 'Number' && v > 0 ? v : null }
  88. // TVmaze's lookup by one external id: { id } (null = TVmaze doesn't know it, 404) or { failed }. hl:fetch follows the
  89. // 301 to /shows/<id> by itself, so a hit answers the show's own JSON.
  90. static tvmazeLookup = (param, value) => {
  91. let r = fetch(tvmazeBase + '/lookup/shows?' + param + '=' + value, { headers = { 'accept' = 'application/json' 'user-agent' = 'tracker.worldapi.org (tmdb sync)' } timeoutMs = 20000 })
  92. if (r == null || r.status == null || r.status == 0) { return { failed = 'TVmaze: no answer for ' + param + '=' + value } }
  93. if (r.status == 404) { return { id = null } }
  94. if (r.status != 200) { return { failed = 'TVmaze: HTTP ' + r.status + ' for ' + param + '=' + value } }
  95. let j = r.json()
  96. if (j == null || numIdOr(j.id) == null) { return { failed = 'TVmaze: no id for ' + param + '=' + value } }
  97. return { id = j.id }
  98. }
  99. // the ids to SET on a show from TMDB's external_ids (+ TVmaze for a series): { imdbId, tvdbId, tvmzId } — each the
  100. // show's own value when it has one (never overwritten), else the found one, else null — plus { filled, tvmazeRequests,
  101. // failed }. TVmaze is asked by imdb, then by thetvdb, only while the show (after TMDB) still has no tvmzId.
  102. static externalIdsFor = (show, ext, isSeries) => {
  103. let out = { imdbId = show.imdbId tvdbId = show.tvdbId tvmzId = show.tvmzId filled = 0 tvmazeRequests = 0 failed = null }
  104. let e = ext != null ? ext : {}
  105. if (!hasId(out.imdbId) && imdbOr(e.imdb_id) != null) { out.imdbId = e.imdb_id out.filled = out.filled + 1 }
  106. if (!isSeries) { return out }
  107. if (!hasId(out.tvdbId) && numIdOr(e.tvdb_id) != null) { out.tvdbId = e.tvdb_id out.filled = out.filled + 1 }
  108. if (hasId(out.tvmzId)) { return out }
  109. let tries = []
  110. if (imdbOr('' + out.imdbId) != null) { tries.push({ param = 'imdb' value = '' + out.imdbId }) }
  111. if (numIdOr(out.tvdbId) != null) { tries.push({ param = 'thetvdb' value = '' + out.tvdbId }) }
  112. for (t of tries) {
  113. if (!hasId(out.tvmzId) && out.failed == null) {
  114. out.tvmazeRequests = out.tvmazeRequests + 1
  115. let found = tvmazeLookup(t.param, t.value)
  116. if (found.failed != null) { out.failed = found.failed } else if (found.id != null) { out.tvmzId = found.id out.filled = out.filled + 1 }
  117. }
  118. }
  119. return out
  120. }
  121. // ---- posters ----------------------------------------------------------------------------------
  122. // the extension of a TMDB poster_path ('/abc.jpg' → 'jpg'); only the ones the poster route knows
  123. static posterExt = (posterPath) => {
  124. let parts = posterPath.split('.')
  125. let ext = parts[parts.length - 1].toLowerCase()
  126. if (ext == 'jpg' || ext == 'jpeg' || ext == 'png' || ext == 'webp') { return ext }
  127. return null
  128. }
  129. // downloads the w342 poster when the file is missing or TMDB has a new one; answers { requests, saved, failed }
  130. // and sets show.image / show.tmdbPoster on the (caller's) record — the file is <oldId>.<ext>, the name
  131. // shows.hl posterName() already builds, served by project.hl's /posters/:name route
  132. static syncPoster = (show, posterPath) => {
  133. let out = { requests = 0 saved = 0 failed = null image = show.image tmdbPoster = show.tmdbPoster }
  134. if (textOr(posterPath) == null || show.oldId == null) { return out }
  135. let ext = posterExt(posterPath)
  136. if (ext == null) { return out }
  137. let file = postersDir + '/' + show.oldId + '.' + ext
  138. if (exists(file) && show.tmdbPoster == posterPath && show.image == ext) { return out }
  139. out.requests = 1
  140. let r = fetch(tmdbImageBase + '/w342' + posterPath, { headers = { 'user-agent' = 'tracker.worldapi.org (tmdb sync)' } timeoutMs = 20000 })
  141. if (r == null || r.status != 200 || r.body == null || r.body.length == 0) {
  142. out.failed = 'poster ' + posterPath + ': ' + (r == null ? 'no answer' : 'HTTP ' + r.status)
  143. return out
  144. }
  145. mkDir(postersDir)
  146. writeFile(file, toBytes(r.body), 420)
  147. out.saved = 1
  148. out.image = ext
  149. out.tmdbPoster = posterPath
  150. return out
  151. }
  152. // ---- one show -----------------------------------------------------------------------------------
  153. static newId = () => { return randomBytes(8, 'hex') }
  154. // which TMDB seasons to sync: every numbered one with episodes; 0 only when the show has a season 0 already
  155. static wantedSeasonNumbers = (details, localByNumber) => {
  156. let out = []
  157. if (details.seasons == null) { return out }
  158. for (s of details.seasons) {
  159. let n = s.season_number
  160. if (n != null && (n > 0 || localByNumber['' + n] != null) && (s.episode_count == null || s.episode_count > 0 || localByNumber['' + n] != null)) { out.push(n) }
  161. }
  162. return out
  163. }
  164. // the seasons in batches of 20 (TMDB's append_to_response limit)
  165. static batchesOf = (list, size) => {
  166. let out = []
  167. let cur = []
  168. for (x of list) {
  169. cur.push(x)
  170. if (cur.length == size) { out.push(cur) cur = [] }
  171. }
  172. if (cur.length > 0) { out.push(cur) }
  173. return out
  174. }
  175. // fields of an episode/season from TMDB that differ from the stored record (null/empty never overwrites)
  176. static changedText = (stored, fresh) => { return fresh != null && fresh != stored }
  177. // a MOVIE: one request — its imdb id (if missing) and its poster; nothing else of the record is touched
  178. static syncMovie = (show, res) => {
  179. let out = res
  180. out.requests = 1
  181. let details = tmdbGet('/movie/' + show.tmdbId + '?append_to_response=external_ids')
  182. if (details.failed != null) { out.errors = 1 out.error = show.title + ': ' + details.failed return out }
  183. let ids = externalIdsFor(show, details.external_ids, false)
  184. out.ids = ids.filled
  185. let poster = syncPoster(show, details.poster_path)
  186. out.requests = out.requests + poster.requests
  187. out.posters = poster.saved
  188. if (poster.failed != null) { out.errors = out.errors + 1 out.error = show.title + ': ' + poster.failed }
  189. let m = show
  190. m.imdbId = ids.imdbId
  191. m.image = poster.image
  192. m.tmdbPoster = poster.tmdbPoster
  193. m.tmdbSync = now()
  194. if (showsTable.update(m.id, m) == null) { out.errors = out.errors + 1 out.error = show.title + ': movie not updated: ' + showsTable.lastError() }
  195. return out
  196. }
  197. // Sync ONE show (by our id). Answers counts: { requests, tvmazeRequests, newSeasons, newEpisodes, updatedEpisodes,
  198. // updatedSeasons, posters, ids, errors, error }. Never throws for a TMDB failure — it is counted and the show left as is.
  199. static syncShow = (showId) => {
  200. let res = { requests = 0 tvmazeRequests = 0 newSeasons = 0 newEpisodes = 0 updatedEpisodes = 0 updatedSeasons = 0 posters = 0 ids = 0 errors = 0 error = '' }
  201. let show = showsTable.fetch(showId)
  202. if (show == null) { res.errors = 1 res.error = 'no show ' + showId return res }
  203. if (show.tmdbId == null) { res.errors = 1 res.error = show.title + ': no tmdbId' return res }
  204. if (show.type == 'movie') { return syncMovie(show, res) }
  205. res.requests = 1
  206. let details = tmdbGet('/tv/' + show.tmdbId + '?append_to_response=external_ids')
  207. if (details.failed != null) { res.errors = 1 res.error = show.title + ': ' + details.failed return res }
  208. // what we have: seasons by number, episodes by tmdbId and by S/E number
  209. let seasonsByNumber = {}
  210. let epByTmdb = {}
  211. let epByNumber = {}
  212. for (sid of show.seasons) {
  213. let s = seasonsTable.fetch(sid)
  214. if (s != null) {
  215. seasonsByNumber['' + s.seasonNumber] = s
  216. for (eid of s.episodes) {
  217. let e = episodesTable.fetch(eid)
  218. if (e != null) {
  219. if (e.tmdbId != null) { epByTmdb['' + e.tmdbId] = e }
  220. epByNumber[e.seasonNumber + 'x' + e.episodeNumber] = e
  221. }
  222. }
  223. }
  224. }
  225. // plain locals for the record literals below: inside a literal, an entry named `show`/`season` would shadow
  226. // the variable for every later entry (SPEC "A literal's entries are evaluated in order")
  227. let showKey = show.id
  228. let showTmdb = show.tmdbId
  229. let showSeasons = []
  230. for (sid of show.seasons) { showSeasons.push(sid) }
  231. let showChanged = false
  232. for (batch of batchesOf(wantedSeasonNumbers(details, seasonsByNumber), 20)) {
  233. let names = []
  234. for (n of batch) { names.push('season/' + n) }
  235. res.requests = res.requests + 1
  236. let withSeasons = tmdbGet('/tv/' + show.tmdbId + '?append_to_response=' + names.join(','))
  237. if (withSeasons.failed != null) {
  238. res.errors = res.errors + 1
  239. res.error = show.title + ': ' + withSeasons.failed
  240. } else {
  241. for (n of batch) {
  242. let ts = withSeasons['season/' + n]
  243. if (ts != null && ts.episodes != null) {
  244. let season = seasonsByNumber['' + n]
  245. let seasonIsNew = season == null
  246. let seasonChanged = false
  247. if (seasonIsNew) {
  248. season = { id = newId() seasonNumber = n title = textOr(ts.name) != null ? ts.name : 'Season ' + n
  249. release = textOr(ts.air_date) summary = textOr(ts.overview) != null ? ts.overview : ''
  250. show = showKey episodes = [] oldId = 'tmdb-season:' + showTmdb + ':' + n }
  251. } else {
  252. if (changedText(season.title, textOr(ts.name))) { season.title = ts.name seasonChanged = true }
  253. if (changedText(season.summary, textOr(ts.overview))) { season.summary = ts.overview seasonChanged = true }
  254. if (changedText(season.release, textOr(ts.air_date))) { season.release = ts.air_date seasonChanged = true }
  255. }
  256. let seasonKey = season.id
  257. let seasonEpisodes = []
  258. for (eid of season.episodes) { seasonEpisodes.push(eid) }
  259. for (te of ts.episodes) {
  260. if (te.id != null && te.episode_number != null) {
  261. let e = epByTmdb['' + te.id]
  262. if (e == null) {
  263. let byNum = epByNumber[n + 'x' + te.episode_number]
  264. if (byNum != null && byNum.tmdbId == null) { e = byNum }
  265. }
  266. if (e == null) {
  267. let fresh = { id = newId() episodeNumber = te.episode_number seasonNumber = n
  268. title = textOr(te.name) summary = textOr(te.overview) != null ? te.overview : '' release = textOr(te.air_date)
  269. show = showKey season = seasonKey tmdbId = te.id oldId = 'tmdb-episode:' + te.id }
  270. let putId = episodesTable.put(fresh)
  271. if (putId == null) {
  272. res.errors = res.errors + 1
  273. res.error = show.title + ': episode ' + te.id + ' not stored: ' + episodesTable.lastError()
  274. } else {
  275. seasonEpisodes.push(fresh.id)
  276. epByTmdb['' + te.id] = fresh
  277. res.newEpisodes = res.newEpisodes + 1
  278. seasonChanged = true
  279. }
  280. } else {
  281. let changed = false
  282. if (e.tmdbId == null) { e.tmdbId = te.id changed = true }
  283. if (changedText(e.title, textOr(te.name))) { e.title = te.name changed = true }
  284. if (changedText(e.summary, textOr(te.overview))) { e.summary = te.overview changed = true }
  285. if (changedText(e.release, textOr(te.air_date))) { e.release = te.air_date changed = true }
  286. if (changed) {
  287. if (episodesTable.update(e.id, e) == null) {
  288. res.errors = res.errors + 1
  289. res.error = show.title + ': episode ' + e.id + ' not updated: ' + episodesTable.lastError()
  290. } else {
  291. epByTmdb['' + e.tmdbId] = e
  292. res.updatedEpisodes = res.updatedEpisodes + 1
  293. }
  294. }
  295. }
  296. }
  297. }
  298. season.episodes = seasonEpisodes
  299. if (seasonIsNew) {
  300. if (seasonsTable.put(season) == null) {
  301. res.errors = res.errors + 1
  302. res.error = show.title + ': season ' + n + ' not stored: ' + seasonsTable.lastError()
  303. } else {
  304. seasonsByNumber['' + n] = season
  305. showSeasons.push(season.id)
  306. showChanged = true
  307. res.newSeasons = res.newSeasons + 1
  308. }
  309. } else if (seasonChanged) {
  310. if (seasonsTable.update(season.id, season) == null) {
  311. res.errors = res.errors + 1
  312. res.error = show.title + ': season ' + season.id + ' not updated: ' + seasonsTable.lastError()
  313. } else {
  314. res.updatedSeasons = res.updatedSeasons + 1
  315. }
  316. }
  317. }
  318. }
  319. }
  320. }
  321. // the external ids (tracker.worldapi.org#12): missing ones from TMDB's external_ids, a missing TVmaze id from TVmaze
  322. let ids = externalIdsFor(show, details.external_ids, true)
  323. res.ids = ids.filled
  324. res.tvmazeRequests = ids.tvmazeRequests
  325. if (ids.failed != null) { res.errors = res.errors + 1 res.error = show.title + ': ' + ids.failed }
  326. // the show itself: status, counts, TMDB's overview, the poster, when it was synced
  327. let poster = syncPoster(show, details.poster_path)
  328. res.requests = res.requests + poster.requests
  329. res.posters = poster.saved
  330. if (poster.failed != null) { res.errors = res.errors + 1 res.error = show.title + ': ' + poster.failed }
  331. show.seasons = showSeasons
  332. if (textOr(details.status) != null) { show.status = details.status }
  333. if (details.number_of_seasons != null) { show.seasonsCount = details.number_of_seasons }
  334. if (details.number_of_episodes != null) { show.episodesCount = details.number_of_episodes }
  335. if (textOr(details.overview) != null) { show.tmdbSummary = details.overview }
  336. show.image = poster.image
  337. show.tmdbPoster = poster.tmdbPoster
  338. show.imdbId = ids.imdbId
  339. show.tvdbId = ids.tvdbId
  340. show.tvmzId = ids.tvmzId
  341. show.tmdbSync = now()
  342. if (showsTable.update(show.id, show) == null) { res.errors = res.errors + 1 res.error = show.title + ': show not updated: ' + showsTable.lastError() }
  343. return res
  344. }
  345. // flush the three tables' index/meta state to disk (after a run, and every few shows)
  346. static persistSync = () => {
  347. showsTable.persist()
  348. seasonsTable.persist()
  349. episodesTable.persist()
  350. return true
  351. }
  352. // totals of a run: the per-show counts added up
  353. static emptyTotals = () => { return { shows = 0 requests = 0 tvmazeRequests = 0 newSeasons = 0 newEpisodes = 0 updatedEpisodes = 0 updatedSeasons = 0 posters = 0 ids = 0 errors = 0 } }
  354. static addTotals = (t, r) => {
  355. let o = t
  356. o.shows = o.shows + 1
  357. o.requests = o.requests + r.requests
  358. o.tvmazeRequests = o.tvmazeRequests + r.tvmazeRequests
  359. o.ids = o.ids + r.ids
  360. o.newSeasons = o.newSeasons + r.newSeasons
  361. o.newEpisodes = o.newEpisodes + r.newEpisodes
  362. o.updatedEpisodes = o.updatedEpisodes + r.updatedEpisodes
  363. o.updatedSeasons = o.updatedSeasons + r.updatedSeasons
  364. o.posters = o.posters + r.posters
  365. o.errors = o.errors + r.errors
  366. return o
  367. }
  368. static totalsLine = (t) => {
  369. return 'shows=' + t.shows + ' newSeasons=' + t.newSeasons + ' newEpisodes=' + t.newEpisodes + ' updatedEpisodes=' + t.updatedEpisodes
  370. + ' updatedSeasons=' + t.updatedSeasons + ' posters=' + t.posters + ' ids=' + t.ids + ' requests=' + t.requests + ' tvmazeRequests=' + t.tvmazeRequests + ' errors=' + t.errors
  371. }

Branches

Latest commits

  • 65c694a8tracker#14: search — header magnifier, /search/<text> (in-memory word-prefix index over titles + people), Fetch from web (TMDB search/multi, ours left out), Add = import via syncShow; gate +25 checks, real-data scriptmre
  • cbdc4ea7tracker#12: link icons TMDB/IMDb/TVDB/TVmaze; sync fills missing ids (TVmaze lookup); movies fetched via /movie/mre
  • b105bcd8tracker#11: Hybriel master ff51cf46 (checks no longer vanish), mobile-first styles, carets, follow button, sign-in modal, inverted check, orange castmre
  • 31b758aatracker#10: installable app (manifest, service worker, offline shell), own icon + faviconmre
  • 2fa9d997tracker#9: TMDB sync (followed shows: seasons, episodes, posters), tools/sync-tmdb.hl + daily run 04:00 UTC, fake TMDB in gatemre
  • 49e1f61edeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • 54070a4etracker#8: /my/unwatched + /my/schedule (301 from old), S01E01, title (year), 1 episode, watched-set lookup (unwatched 15s -> 1s)mre
  • 3251488atracker#7: /my/shows (followed shows, newest follow first, poster, title, last watched SxxEyy); gate can take screenshots (TRACKER_GATE_SHOTS)mre
  • 44b7d9f9tracker#6: /schedule — upcoming episodes of followed shows, soonest firstmre
  • 91c9fc8ctracker#5: /unwatched — unwatched released episodes of followed shows, newest firstmre
  • a97c0295tracker#4: show page /shows/:slug (header, seasons, episodes, watch checks) + tools/relink-episode-seasons.hlmre
  • 05f407c5tracker: no border on any button except inverted ones (Log out, ident status and identities too); header brand weight 100mre
  • 17375427tracker#2: tools/migrate.hl + tools/verify.hl — old MongoDB data into mpackdb with new idsmre
  • 31aac936tracker#3: no border on the header and on filled buttons; inverted buttons keep theirsmre
  • 2ad9d29ctracker#1: login exactly like calendar (identity selector in the header, empty homepage)mre
  • 3691e176tracker#1: empty tracker with the ident login (state of 2026-09-27)mre