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'] = [{