import Link from "next/link"; import { getPaths } from "yt-dlp-transcript-common/lib/paths"; import { listLiveRecordings, type LiveRecordingView, type LiveRecordingsFileProblem, } from "yt-dlp-transcript-common/controller/liveRecordings"; import { LiveRecordingActions } from "./LiveRecordingActions"; // LIVE RECORDINGS THAT NEED A PERSON (controller/liveRecordings.ts): failed, // interrupted, cancelled when must-keep, recorded from the live edge with the // stream's start lost, one stream missing, parts kept on disk not landed — and // every recording that runs but has STOPPED GROWING (stalled: said here as a // failure is, with no Acknowledge, since it clears itself when the files grow // or the run ends), and a live-recordings.json that did not read. // One component for the four places it is said — /review's section, and the // banners on /jobs, the channel page and the video page (narrowed by `slug`, // `id`) — so all four say the same sentence. It stays until a person presses // Acknowledge or a later recording of the stream lands from its start. // // RENDERED ONLY WHEN THERE IS SOMETHING TO SAY, like /review's other sections. function when(iso: string): string { return `${iso.slice(0, 16).replace("T", " ")} UTC`; } function Row({ r }: { r: LiveRecordingView }) { return (
{k.stem} · {Math.round(k.bytes / 1024 / 1024)} MB · {k.why}
pnpm ops get live-recordings lists every recording; pnpm ops live-recording-ack is Acknowledge.