diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-10 07:08:22 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-10 09:31:59 +0530 |
commit | d1d5c08f29b3b1d60d8b11b812029757fe3fd90a (patch) | |
tree | 51c2edd74113821bbe47a3c13aff5294ccc522f5 /yt_dlp/downloader/common.py | |
parent | 2e01ba62181fee12bf44b8f3f6cb0f46cd591e61 (diff) | |
download | hypervideo-pre-d1d5c08f29b3b1d60d8b11b812029757fe3fd90a.tar.lz hypervideo-pre-d1d5c08f29b3b1d60d8b11b812029757fe3fd90a.tar.xz hypervideo-pre-d1d5c08f29b3b1d60d8b11b812029757fe3fd90a.zip |
[minicurses] Fix when printing to file
Closes #1215
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r-- | yt_dlp/downloader/common.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py index 50e674829..89cdffd24 100644 --- a/yt_dlp/downloader/common.py +++ b/yt_dlp/downloader/common.py @@ -3,7 +3,6 @@ from __future__ import division, unicode_literals import copy import os import re -import sys import time import random @@ -247,9 +246,9 @@ class FileDownloader(object): elif self.ydl.params.get('logger'): self._multiline = MultilineLogger(self.ydl.params['logger'], lines) elif self.params.get('progress_with_newline'): - self._multiline = BreaklineStatusPrinter(sys.stderr, lines) + self._multiline = BreaklineStatusPrinter(self.ydl._screen_file, lines) else: - self._multiline = MultilinePrinter(sys.stderr, lines, not self.params.get('quiet')) + self._multiline = MultilinePrinter(self.ydl._screen_file, lines, not self.params.get('quiet')) def _finish_multiline_status(self): self._multiline.end() |