This commit is contained in:
eric
2026-03-29 03:35:05 -05:00
parent 895dafc0e0
commit 22061fb3c8
14 changed files with 669 additions and 94 deletions

View File

@@ -17,9 +17,9 @@ import { LivePipelineStrip } from "@/components/live-product/LivePipelineStrip";
import { LiveProcessLiveLogCard } from "@/components/live-product/LiveProcessLiveLogCard";
import {
defaultPm2NameForChannel,
fetchYoutubeProChannelsRemote,
loadYoutubeProChannels,
newChannelId,
parseYoutubeProChannelList,
pushYoutubeProChannelsRemote,
saveYoutubeProChannels,
type YoutubeProChannel,
@@ -271,8 +271,7 @@ export function LiveYoutubeUnmannedView({
let cancelled = false;
void (async () => {
try {
const data = await fetchJson<{ channels?: unknown }>("/hub/youtube_pro_channels");
const fromServer = parseYoutubeProChannelList(data.channels);
const fromServer = await fetchYoutubeProChannelsRemote(fetchJson);
if (fromServer.length && !cancelled) {
setChannels(fromServer);
saveYoutubeProChannels(fromServer);