import Link from "next/link"; import { notFound } from "next/navigation"; import { getPaths } from "yt-dlp-transcript-common/lib/paths"; import { readChannelConfig } from "yt-dlp-transcript-common/controller/channels"; import { LocalMediaPanel } from "./LocalMediaPanel"; export const dynamic = "force-dynamic"; export default async function LocalMediaPage({ params }: { params: Promise<{ slug: string }> }) { const { slug } = await params; if (!/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(slug) || slug.endsWith(".")) notFound(); const config = await readChannelConfig(getPaths(), slug); if (!config || config.sourceKind === "social") notFound(); return
Back to channel

Local media library

; }