diff --git a/app/download.py b/app/download.py index 7fd2e52..aa063de 100644 --- a/app/download.py +++ b/app/download.py @@ -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']])