Update download.py

This commit is contained in:
TylerCG 2025-05-12 17:04:58 -04:00
parent 9780c52f9b
commit 1915e89f57

View File

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