"use client"; import { StreamActionLog } from "yt-dlp-transcript-common/components/StreamActionLog"; import { cancelJobAction } from "../../../../../jobs/actions"; import { browserLookupAction } from "../../../browserLookupActions"; // "Read from the page" (release 32 R9): an Odysee video's record read from its // page in a headless browser, for when yt-dlp's lookup is refused (a 429). The // record gains what it lacks — and the media file the page's player asked for, // which the stored-URL download then reads. Offered on an Odysee record only; // the job's log names what it wrote. export function BrowserLookupControl({ slug, videoId }: { slug: string; videoId: string }) { return ( browserLookupAction(slug, { ids: [videoId] })} cancelAction={cancelJobAction} buttonLabel="Read from the page" runningLabel="Reading the page…" label={`Read ${videoId} from its Odysee page`} /> ); }