commit b88d275e743cfdc6a065b6e3f3a27115e447a997
parent f3da0c50775bcee3470966eb3aa3db1e03de8317
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 15 Oct 2026 08:36:43 -0400
common, editor: the find-copy result marker lives in publish/findCopy.ts — a "use server" file exports async functions only (the editor build refused it)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/common/publish/findCopy.ts b/common/publish/findCopy.ts
@@ -488,6 +488,9 @@ export async function findCopies(opts: {
return result;
}
+// The line a find-copy job's log ends with, then its result as JSON.
+export const FIND_COPY_RESULT_MARKER = "@@find-copy ";
+
// find-copy, whole: the lookups, then (unless `dryRun`, or the run was
// cancelled) ONE fetch-windows of every found copy's windows through
// `startFetch` (the editor's job). A run with nothing found starts nothing.
diff --git a/editor/app/channels/[slug]/videos/findCopyAction.ts b/editor/app/channels/[slug]/videos/findCopyAction.ts
@@ -5,7 +5,7 @@ import { getSite, isValidSiteId, listSiteIds } from "yt-dlp-transcript-common/li
import { clipWindowQueueKey } from "yt-dlp-transcript-common/lib/queueKeys";
import { platformQueueKey } from "yt-dlp-transcript-common/lib/platform";
import { articlesWorkHost, siteReportHost, type ReportHost } from "yt-dlp-transcript-common/publish/reportHost";
-import { runFindCopy } from "yt-dlp-transcript-common/publish/findCopy";
+import { FIND_COPY_RESULT_MARKER, runFindCopy } from "yt-dlp-transcript-common/publish/findCopy";
import { runManagedFunction, type StreamActionResult } from "yt-dlp-transcript-common/jobs/streamCommand";
import { fetchWindowsJobAction } from "./fetchWindowsAction";
@@ -19,7 +19,6 @@ import { fetchWindowsJobAction } from "./fetchWindowsAction";
// time, paced, one stream. The job's log ends with
// `@@find-copy {recordings, items, stopped?, fetchJobId?, refused?}`.
-export const FIND_COPY_RESULT_MARKER = "@@find-copy ";
const FIND_COPY_QUEUE = "find-copy";
// The archive.org clip queue: every copy's windows, one job, one stream.
const FETCH_QUEUE = clipWindowQueueKey(platformQueueKey("archiveorg"));