From 8a7f6d7a155bc0966c40736336faea81db92315b Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 31 May 2022 02:23:54 +0530 Subject: [PATCH] Do not print progress to `stderr` with `-q` It is arguable how this "should" behave, but since progress is always written to stdout in older yt-dl/p, we should keep it as-is Bug in cf4f42cb9776eaa3166d2d234c3ec7651f05d7a9 Closes #3844 --- yt_dlp/downloader/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py index e2266cfb0..cd30d1eff 100644 --- a/yt_dlp/downloader/common.py +++ b/yt_dlp/downloader/common.py @@ -283,9 +283,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.out, lines) else: - self._multiline = MultilinePrinter(self.ydl._out_files.screen, lines, not self.params.get('quiet')) + 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') def _finish_multiline_status(self):