aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-05-17 18:36:29 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-05-17 18:41:46 +0530
commit591bb9d3553a4d7b453777c1e28e0948741e3b50 (patch)
tree44e8e3873c6d8e6d06c7a92b3b32179242e114c2 /yt_dlp/downloader/common.py
parent5faf6528fb701724ac32e0a487f92281c7800bda (diff)
downloadhypervideo-pre-591bb9d3553a4d7b453777c1e28e0948741e3b50.tar.lz
hypervideo-pre-591bb9d3553a4d7b453777c1e28e0948741e3b50.tar.xz
hypervideo-pre-591bb9d3553a4d7b453777c1e28e0948741e3b50.zip
Fix color in `-q -F`
and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace` Closes #3761
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r--yt_dlp/downloader/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py
index 1f14ebb3a..fad4e6664 100644
--- a/yt_dlp/downloader/common.py
+++ b/yt_dlp/downloader/common.py
@@ -282,9 +282,9 @@ class FileDownloader:
elif self.ydl.params.get('logger'):
self._multiline = MultilineLogger(self.ydl.params['logger'], lines)
elif self.params.get('progress_with_newline'):
- self._multiline = BreaklineStatusPrinter(self.ydl._out_files['screen'], lines)
+ self._multiline = BreaklineStatusPrinter(self.ydl._out_files.screen, lines)
else:
- self._multiline = MultilinePrinter(self.ydl._out_files['screen'], lines, not self.params.get('quiet'))
+ self._multiline = MultilinePrinter(self.ydl._out_files.screen, lines, not self.params.get('quiet'))
self._multiline.allow_colors = self._multiline._HAVE_FULLCAP and not self.params.get('no_color')
def _finish_multiline_status(self):
@@ -301,7 +301,7 @@ class FileDownloader:
)
def _report_progress_status(self, s, default_template):
- for name, style in self.ProgressStyles._asdict().items():
+ for name, style in self.ProgressStyles.items_:
name = f'_{name}_str'
if name not in s:
continue