1
0
Fork 0

Fix color in -q -F

and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace`

Closes #3761
This commit is contained in:
pukkandan 2022-05-17 18:36:29 +05:30
commit 591bb9d355
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
4 changed files with 54 additions and 43 deletions

View file

@ -63,7 +63,7 @@ class YDLLogger:
# Do not print to files/pipes, loggers, or when --no-progress is used
if not self._ydl or self._ydl.params.get('noprogress') or self._ydl.params.get('logger'):
return
file = self._ydl._out_files['error']
file = self._ydl._out_files.error
try:
if not file.isatty():
return