Do not log download progress lines by default

When you set debugging, the default progress output can be viewed and/or logged, depending on the other options.
This commit is contained in:
tcely 2024-12-23 01:28:46 -05:00 committed by GitHub
parent 904c57f603
commit b19614cc9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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