import type { Paths } from "yt-dlp-transcript-common/lib/paths"; import { isRemoteOnlyChannel } from "yt-dlp-transcript-common/lib/channelConfig"; import { listChannelConfigs } from "yt-dlp-transcript-common/controller/channels"; import type { ChannelOption } from "../components/SiteForm"; // The channels a site form offers: every channel but a REMOTE-ONLY one (demo // epic D1) — it holds a connected archive's clip windows, has no corpus to // publish, and the site writer refuses it anyway (lib/site.ts). export async function siteChannelOptions(paths: Paths): Promise { return (await listChannelConfigs(paths)) .filter((c) => !isRemoteOnlyChannel(c.config)) .map((c) => ({ slug: c.slug, name: c.config.name ?? c.slug })); }