From feb99c0dc105d1c41a43d23095f14b716339fc82 Mon Sep 17 00:00:00 2001 From: William P Date: Fri, 26 Sep 2025 15:48:00 -0400 Subject: [PATCH] add args to fix error (https://github.com/yt-dlp/yt-dlp/issues/14456#issuecomment-3339167951) --- app/ytdlp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/ytdlp.py b/app/ytdlp.py index f048f18..f996256 100644 --- a/app/ytdlp.py +++ b/app/ytdlp.py @@ -55,7 +55,12 @@ def download_video(url: str, format: str, out_path: str, temp_path: str, progres opts = { 'format': format, 'paths': {'home': out_path, 'temp': temp_path}, - 'progress_hooks': [hook] + 'progress_hooks': [hook], + 'extractor_args': { + 'youtube': { + 'player_client': ['default', '-tv_simply'], + } + } } with yt_dlp.YoutubeDL(opts) as ydl: ydl.download([url])