Fix color in -q -F
and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace` Closes #3761
This commit is contained in:
parent
5faf6528fb
commit
591bb9d355
4 changed files with 54 additions and 43 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue