From 4e30e636eaf13e464fc7b4e98c1f8daa9fc37ec9 Mon Sep 17 00:00:00 2001 From: TylerCG <117808427+TylerCG@users.noreply.github.com> Date: Mon, 12 May 2025 19:46:35 -0400 Subject: [PATCH] Update download.py --- app/download.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/download.py b/app/download.py index aa063de..a34f65f 100644 --- a/app/download.py +++ b/app/download.py @@ -168,12 +168,9 @@ class dropout(): 'outtmpl': filename_template, } if archive: - dl_opts = { - 'progress_hooks': [my_hook], - 'skip_download': True, - 'download_archive': '/data/logs/dropout.archive.log', - 'cookiefile': '/data/dropout.cookies.txt' - } + dl_opts['skip_download'] = True + dl_opts.pop('writesubtitles', None) # Optional: don't write subtitles during archive + with yt_dlp.YoutubeDL(dl_opts) as ydl: ydl.download([entry['webpage_url']])