From c8c9c592cf563170fe1e552b6e5b6438bca8b225 Mon Sep 17 00:00:00 2001 From: sm4640 Date: Tue, 24 Mar 2026 17:12:23 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20[2.0.8]=20process=3DFalse=EB=A1=9C=20?= =?UTF-8?q?=ED=8F=AC=EB=A7=B7=20=EC=B2=98=EB=A6=AC=20=EA=B1=B4=EB=84=88?= =?UTF-8?q?=EB=9B=B0=EA=B3=A0=20=EC=9E=90=EB=A7=89=EB=A7=8C=20=EC=B6=94?= =?UTF-8?q?=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit extract_info에 process=False 적용하여 포맷 선택 단계를 완전히 스킵. 자막 정보는 YouTube extractor에서 직접 반환되므로 포맷 처리 불필요. Co-Authored-By: Claude Opus 4.6 --- app/transcript.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/transcript.py b/app/transcript.py index bd7e39a..292866b 100644 --- a/app/transcript.py +++ b/app/transcript.py @@ -23,13 +23,8 @@ def fetch_transcript(video_id: str) -> str: ydl_opts = { "skip_download": True, - "writeautomaticsub": True, - "subtitleslangs": ["ko", "en"], - "subtitlesformat": "json3", "quiet": True, "no_warnings": True, - "extract_flat": False, - "ignore_no_formats_error": True, } if os.path.isfile(COOKIES_SRC): @@ -39,7 +34,7 @@ def fetch_transcript(video_id: str) -> str: try: with yt_dlp.YoutubeDL(ydl_opts) as ydl: - info = ydl.extract_info(url, download=False) + info = ydl.extract_info(url, ie_key="Youtube", download=False, process=False) finally: if "cookiefile" in ydl_opts: os.unlink(ydl_opts["cookiefile"])