@@ -55,12 +55,7 @@ def download_video(url: str, format: str, out_path: str, temp_path: str, progres
|
|||||||
opts = {
|
opts = {
|
||||||
'format': format,
|
'format': format,
|
||||||
'paths': {'home': out_path, 'temp': temp_path},
|
'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:
|
with yt_dlp.YoutubeDL(opts) as ydl:
|
||||||
ydl.download([url])
|
ydl.download([url])
|
||||||
|
|||||||
Reference in New Issue
Block a user