1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 11:26:40 -04:00

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
parent 5faf6528fb
commit 591bb9d355
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