diff --git a/src/apps/personas/creator/FromYouTube.tsx b/src/apps/personas/creator/FromYouTube.tsx index a2f2169a3..b3fc0e7c2 100644 --- a/src/apps/personas/creator/FromYouTube.tsx +++ b/src/apps/personas/creator/FromYouTube.tsx @@ -14,6 +14,37 @@ import { InlineError } from '~/common/components/InlineError'; import type { SimplePersonaProvenance } from '../store-app-personas'; +// configuration +const TEMP_DISABLE_YOUTUBE_TRANSCRIPT = true; + + +function YouTubeDisabledCard() { + return ( + + + Temporarily Disabled + + + YouTube transcript extraction is currently unavailable due to API changes. + + + Download transcripts manually and use the "From Text" option instead. + + + ); +} + + function YouTubeVideoTranscriptCard(props: { transcript: YTVideoTranscript, onClose: () => void, sx?: SxProps }) { const { transcript } = props; return ( @@ -109,6 +140,13 @@ export function FromYouTube(props: { setVideoID(videoId); }; + if (TEMP_DISABLE_YOUTUBE_TRANSCRIPT) + return <> + } sx={{ mb: 3 }}> + YouTube -> Persona + + + ; return <>