From 1915e89f573141405c25592caf0f037d4684a415 Mon Sep 17 00:00:00 2001 From: TylerCG <117808427+TylerCG@users.noreply.github.com> Date: Mon, 12 May 2025 17:04:58 -0400 Subject: [PATCH] Update download.py --- app/download.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/download.py b/app/download.py index aaead5f..f36ce3f 100644 --- a/app/download.py +++ b/app/download.py @@ -149,6 +149,7 @@ class dropout(): dl_opts = { 'progress_hooks': [my_hook], + 'download_archive': '/data/logs/dropout.archive.text', 'format': 'bestvideo+bestaudio/best', 'audio_quality': '256K', 'paths': { @@ -212,6 +213,7 @@ class dropout(): dl_opts = { 'progress_hooks': [my_hook], + 'download_archive': '/data/logs/dropout.archive.text', 'format': 'bestvideo+bestaudio/best', 'audio_quality': '256K', 'paths': { @@ -264,7 +266,15 @@ class dropout(): class youtube(): def ydl(url, location): - dl_ops = {'progress_hooks': [my_hook],'paths': {'temp': '/temp', 'home': location}, 'outtmpl': '%(uploader)s/%(title)s.%(ext)s'} + dl_ops = { + 'progress_hooks': [my_hook], + 'download_archive': '/data/logs/youtube.archive.text', + 'paths': { + 'temp': '/temp', + 'home': location + }, + 'outtmpl': '%(uploader)s/%(title)s.%(ext)s' + } if dl_ops['paths']['home'] == '/podcasts': dl_ops['format'] = 'bestaudio/best[ext=mp3]' dl_ops['postprocessors'] = [{