Update download.py
This commit is contained in:
parent
8ea0d542e3
commit
534a4fb5ca
@ -155,7 +155,7 @@ class dropout():
|
||||
|
||||
dl_opts = {
|
||||
'progress_hooks': [my_hook],
|
||||
'download_archive': '/data/logs/dropout.archive.text',
|
||||
'download_archive': '/data/logs/dropout.archive.log',
|
||||
'format': 'bestvideo+bestaudio/best',
|
||||
'audio_quality': '256K',
|
||||
'paths': {
|
||||
@ -168,7 +168,12 @@ class dropout():
|
||||
'outtmpl': filename_template,
|
||||
}
|
||||
if archive:
|
||||
dl_opts['skip_download'] = True
|
||||
dl_opts = {
|
||||
'progress_hooks': [my_hook],
|
||||
'skip_download': True,
|
||||
'download_archive': '/data/logs/dropout.archive.log',
|
||||
'cookiefile': '/data/dropout.cookies.txt'
|
||||
}
|
||||
|
||||
with yt_dlp.YoutubeDL(dl_opts) as ydl:
|
||||
ydl.download([entry['webpage_url']])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user