Archilyzer · Source

archilyzer

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

commit 8d115ed9df38168afc76f42cd54fdfe000bc0bcf
parent 9998245d9a03cb458c2c2b45f064420aada04775
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 11 Nov 2026 12:55:34 -0500

local media e2e: the prepared recording's subtitles are short-form

Preview, prepare and import run over a mm:ss.mmm transcript, and the imported
transcript.en.vtt is the library's bytes.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Meditor/e2e/local-media.spec.ts | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/editor/e2e/local-media.spec.ts b/editor/e2e/local-media.spec.ts @@ -13,6 +13,9 @@ import { join } from "node:path"; import { resetData, testPaths, writeChannelConfig } from "./helpers"; const VTT = "WEBVTT\n\n00:00:01.000 --> 00:00:03.000\nA synthetic library cue\n"; +// Short-form cue timings (mm:ss.mmm), what FFmpeg and hand-made subtitle files +// write: the prepared recording carries them through preview, import and index. +const SHORT_VTT = "WEBVTT\n\n00:01.000 --> 00:03.000\nA short-form library cue\n\n01:02.500 --> 01:04.000\nA second short-form cue\n"; test("a Local Archive channel imports a library recording and a prepared one, playback left off", async ({ page }) => { await resetData("empty"); @@ -26,7 +29,7 @@ test("a Local Archive channel imports a library recording and a prepared one, pl })); await writeFile(join(library, "aaaaaaaaaaa.vtt"), VTT); await writeFile(join(library, "talk.mp4"), "synthetic mp4 talk"); - await writeFile(join(library, "talk.vtt"), VTT); + await writeFile(join(library, "talk.vtt"), SHORT_VTT); const before = (await readdir(library)).sort(); await page.goto("/channels/new"); @@ -66,6 +69,8 @@ test("a Local Archive channel imports a library recording and a prepared one, pl const local = ids.find((id) => id.startsWith("local-"))!; expect((await readdir(join(data, local))).sort()).toEqual(["external-media.json", "metadata.info.json", "transcript.en.vtt"]); expect(JSON.parse(await readFile(join(data, local, "metadata.info.json"), "utf8")).title).toBe("A prepared talk"); + // The short-form transcript is imported byte for byte, never rewritten. + expect(await readFile(join(data, local, "transcript.en.vtt"), "utf8")).toBe(SHORT_VTT); // A local record's page names it a local recording, with no download card. await page.goto(`/channels/local-spec-library/videos/${local}`);