Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit e091d98e9f2e5fbbab18d37130afe52dae2debe8
parent be9b407155fc77645cd3b31653a0bf2682a1297b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 18 May 2026 21:28:00 -0400

bump subs schema version

Diffstat:
Mcommon/controller/buildIndex.ts | 17+++++++++++++++++
Mcommon/lib/manifest.ts | 2+-
2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/common/controller/buildIndex.ts b/common/controller/buildIndex.ts @@ -445,8 +445,25 @@ export async function buildIndex({ break; } } + let subsIntact = true; + const subsManifestPath = path.join(subsOutDir, "manifest.json"); + const subsManifestRaw = await readFile(subsManifestPath, "utf8").catch( + () => null, + ); + if (subsManifestRaw) { + try { + const sm = JSON.parse(subsManifestRaw) as SubsManifest; + if (sm.version !== SUBS_MANIFEST_VERSION) subsIntact = false; + } catch { + subsIntact = false; + } + } + // A missing subs manifest is fine — channels may simply have no subs. + // But if it exists at an older version, force a rebuild so the + // export UI sees the current schema. if ( transcriptsIntact && + subsIntact && (await exists(firstPage)) && (await exists(lastPage)) ) { diff --git a/common/lib/manifest.ts b/common/lib/manifest.ts @@ -45,7 +45,7 @@ export type ChannelTranscriptsManifest = { slugToPage: Record<string, number>; }; -export const SUBS_MANIFEST_VERSION = 2; +export const SUBS_MANIFEST_VERSION = 3; export type SubsChannelEntry = { name: string;