commit 3276cd2f98544e3e406310a978eb4c30390deebe
parent ce9bf72691bfb265589763901b9e36956b8b7dc1
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 15 Oct 2026 17:40:52 -0400
editor: e2e — the corrupt-full-source retry scenario runs on a real-shaped Odysee claim URL (release 30 lane Q) — the audio-check fixture's bare `https://odysee.com/abc123` reads as no id to the app (extractVideoId), so the retry's allowlist matched nothing ("kept 0 of 1 playlist URLs"); the scenario writes `https://odysee.com/@example/clip:abc123` (the app's id: the claim, abc123), and the fake yt-dlp reads an Odysee claim URL's id the way the app does (a bare path is unchanged); audio-check-scenarios.spec.ts 16/16
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/editor/e2e/audio-check-scenarios.spec.ts b/editor/e2e/audio-check-scenarios.spec.ts
@@ -330,6 +330,13 @@ test.describe("audio-checked download scenarios", () => {
// a no-op ("Nothing to fetch"); an intermittent source can come back
// clean, so the retry sets the kept file aside and downloads again.
await resetData("audio-check-channel");
+ // A real-shaped Odysee claim URL: the retry finds a video by the id the
+ // app reads off its URL (the fixture's bare `/abc123` reads as none), and
+ // the claim is the same `abc123`, so the dir is the one the others use.
+ await writeFile(
+ resolvePath(`${CHANNEL_ROOT}/playlist`),
+ `https://odysee.com/@example/clip:${VIDEO_ID}\n`,
+ );
await writeFakeConfig({
mode: "corrupt-final",
deterministicCorrupt: true,
diff --git a/editor/e2e/fixtures/bin/fake-ytdlp.mjs b/editor/e2e/fixtures/bin/fake-ytdlp.mjs
@@ -76,6 +76,15 @@ function urlIdYouTube(u) {
const parsed = new URL(u);
const v = parsed.searchParams.get("v");
if (v) return v;
+ // An Odysee claim URL (`/@channel/name:<claim>`) is the claim, as the app's
+ // extractVideoId reads it (lib/videoId.ts) — so a playlist of real-shaped
+ // Odysee URLs keeps the fake's data/<id>/ and the app's in step. A bare
+ // `/abc123` (the audio-check fixture) has no colon and is unchanged.
+ if (parsed.hostname.endsWith("odysee.com")) {
+ const decoded = decodeURIComponent(parsed.pathname);
+ const colon = decoded.lastIndexOf(":");
+ if (colon > 0) return decoded.slice(colon + 1);
+ }
return parsed.pathname.split("/").filter(Boolean).pop();
} catch {
return u;