add args to fix error (https://github.com/yt-dlp/yt-dlp/issues/14456#issuecomment-3339167951)
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user