2 Commits
2.0.6 ... 2.0.8

Author SHA1 Message Date
sm4640
c8c9c592cf Fix: [2.0.8] process=False로 포맷 처리 건너뛰고 자막만 추출
All checks were successful
news-summary-bot-cicd / build_push_deploy (push) Successful in 15m23s
extract_info에 process=False 적용하여 포맷 선택 단계를 완전히 스킵.
자막 정보는 YouTube extractor에서 직접 반환되므로 포맷 처리 불필요.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 17:12:23 +09:00
sm4640
98cd620f23 Fix: [2.0.7] format 에러 해결 - ignore_no_formats_error 사용
All checks were successful
news-summary-bot-cicd / build_push_deploy (push) Successful in 11m7s
format: worst 대신 ignore_no_formats_error: True로 변경하여
포맷 관련 에러 없이 자막만 추출하도록 수정

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 16:54:33 +09:00

View File

@@ -23,10 +23,6 @@ def fetch_transcript(video_id: str) -> str:
ydl_opts = {
"skip_download": True,
"writeautomaticsub": True,
"subtitleslangs": ["ko", "en"],
"subtitlesformat": "json3",
"format": "worst",
"quiet": True,
"no_warnings": True,
}
@@ -38,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"])