Update download.py
This commit is contained in:
parent
534a4fb5ca
commit
4e30e636ea
@ -168,12 +168,9 @@ class dropout():
|
|||||||
'outtmpl': filename_template,
|
'outtmpl': filename_template,
|
||||||
}
|
}
|
||||||
if archive:
|
if archive:
|
||||||
dl_opts = {
|
dl_opts['skip_download'] = True
|
||||||
'progress_hooks': [my_hook],
|
dl_opts.pop('writesubtitles', None) # Optional: don't write subtitles during archive
|
||||||
'skip_download': True,
|
|
||||||
'download_archive': '/data/logs/dropout.archive.log',
|
|
||||||
'cookiefile': '/data/dropout.cookies.txt'
|
|
||||||
}
|
|
||||||
|
|
||||||
with yt_dlp.YoutubeDL(dl_opts) as ydl:
|
with yt_dlp.YoutubeDL(dl_opts) as ydl:
|
||||||
ydl.download([entry['webpage_url']])
|
ydl.download([entry['webpage_url']])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user