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"])