aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/common.py
diff options
context:
space:
mode:
authorSimon Sawicki <contact@grub4k.xyz>2023-05-24 20:35:07 +0200
committerGitHub <noreply@github.com>2023-05-24 20:35:07 +0200
commit8417f26b8a819cd7ffcd4e000ca3e45033e670fb (patch)
treee0227cf0f6b96fc89235d259effad6bd5ec8891c /yt_dlp/downloader/common.py
parent7aeda6cc9e73ada0b0a0b6a6748c66bef63a20a8 (diff)
downloadhypervideo-pre-8417f26b8a819cd7ffcd4e000ca3e45033e670fb.tar.lz
hypervideo-pre-8417f26b8a819cd7ffcd4e000ca3e45033e670fb.tar.xz
hypervideo-pre-8417f26b8a819cd7ffcd4e000ca3e45033e670fb.zip
[core] Implement `--color` flag (#6904)
Authored by: Grub4K
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r--yt_dlp/downloader/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py
index c48a2ff8a..477ec3c8a 100644
--- a/yt_dlp/downloader/common.py
+++ b/yt_dlp/downloader/common.py
@@ -296,7 +296,8 @@ class FileDownloader:
self._multiline = BreaklineStatusPrinter(self.ydl._out_files.out, lines)
else:
self._multiline = MultilinePrinter(self.ydl._out_files.out, lines, not self.params.get('quiet'))
- self._multiline.allow_colors = self._multiline._HAVE_FULLCAP and not self.params.get('no_color')
+ self._multiline.allow_colors = self.ydl._allow_colors.out and self.ydl._allow_colors.out != 'no_color'
+ self._multiline._HAVE_FULLCAP = self.ydl._allow_colors.out
def _finish_multiline_status(self):
self._multiline.end()