commit b26429eb373a8543ee7f57b2c2c557b10c8daa47 parent 0164d202f1db4760acf3dccf26015ab80b4a2817 Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st> Date: Mon, 5 Oct 2026 05:18:33 -0400 export: the fixture's audio moment names its clip as compose does (.m4a) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Diffstat:
4 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/export/app/lib/reports.test.ts b/export/app/lib/reports.test.ts @@ -134,7 +134,7 @@ test("an audio moment plays audio; a post moment shows its shot, text and author const audio = render( await momentPage.default({ params: Promise.resolve({ moment: ["demo-podcast", "ep-042", "610.50-628.00"] }) }), ); - assert.match(audio, /<audio data-evidence-clip=""/); + assert.match(audio, /<audio data-evidence-clip=""[^>]*src="\/media\/clips\/demo-podcast\/ep-042\/610.50-628.00.m4a"/); assert.ok(audio.includes("The guest")); const post = render(await momentPage.default({ params: Promise.resolve({ moment: ["demo-social", "1234567890"] }) })); assert.match(post, /data-moment-kind="post"/); diff --git a/export/fixtures/report-site/fixture.ts b/export/fixtures/report-site/fixture.ts @@ -154,7 +154,9 @@ export function buildFixtureMomentViews( start: span.start, end: span.end, clip: { - src: evidenceClipPath(span), + // A clip cut as sound is an .m4a beside the video clips (compose's + // clipPath). + src: c.kind === "audio" ? evidenceClipPath(span).replace(/\.mp4$/, ".m4a") : evidenceClipPath(span), start: Math.max(0, span.start - before), end: span.end + after, ...(c.kind === "video" ? { poster: POSTER } : {}), diff --git a/export/fixtures/report-site/public/m/demo-podcast/ep-042/610.50-628.00/moment.json b/export/fixtures/report-site/public/m/demo-podcast/ep-042/610.50-628.00/moment.json @@ -20,7 +20,7 @@ "start": 610.5, "end": 628, "clip": { - "src": "/media/clips/demo-podcast/ep-042/610.50-628.00.mp4", + "src": "/media/clips/demo-podcast/ep-042/610.50-628.00.m4a", "start": 610.5, "end": 628 }, diff --git a/export/fixtures/report-site/public/media/clips/demo-podcast/ep-042/610.50-628.00.mp4 b/export/fixtures/report-site/public/media/clips/demo-podcast/ep-042/610.50-628.00.m4a Binary files differ.