add args to fix error (https://github.com/yt-dlp/yt-dlp/issues/14456#issuecomment-3339167951)
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m29s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s

This commit is contained in:
2025-09-26 15:48:00 -04:00
parent d06af692c3
commit feb99c0dc1

View File

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