From 534a4fb5ca5552b3099e6962e7befbc2b53a9bbf Mon Sep 17 00:00:00 2001 From: TylerCG <117808427+TylerCG@users.noreply.github.com> Date: Mon, 12 May 2025 19:34:46 -0400 Subject: [PATCH] Update download.py --- app/download.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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']])