Made DEBUG work for youtube-dl also

This commit is contained in:
tcely 2024-11-19 17:29:55 -05:00 committed by GitHub
parent 20d631ca78
commit 41e24b82b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,7 +151,8 @@ def download_media(url, media_format, extension, output_file, info_json,
'format': media_format,
'merge_output_format': extension,
'outtmpl': os.path.basename(output_file),
'quiet': True,
'quiet': False if settings.DEBUG else True,
'verbose': True if settings.DEBUG else False,
'progress_hooks': [hook],
'writeinfojson': info_json,
'postprocessors': [],