aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-02-18 18:52:06 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-02-18 18:52:06 +0100
commit5717d91ab724a843e0cdbda6e9a0bc6e8c458856 (patch)
treeaf7e0c2051603586e697f6cfd3f44ced9f22a2e9 /youtube_dl/FileDownloader.py
parent79eb0287ab34767e72e77d612775789ff9da0422 (diff)
downloadyoutube-dl-5717d91ab724a843e0cdbda6e9a0bc6e8c458856.tar.xz
Correct --newline and give it a more meaningful title
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 7ad9d9a76..0ac526389 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -305,10 +305,11 @@ class FileDownloader(object):
"""Report download progress."""
if self.params.get('noprogress', False):
return
- if self.params.get('newline', True):
+ if self.params.get('progress_with_newline', False):
self.to_screen(u'[download] %s of %s at %s ETA %s' %
(percent_str, data_len_str, speed_str, eta_str))
- else: self.to_screen(u'\r[download] %s of %s at %s ETA %s' %
+ else:
+ self.to_screen(u'\r[download] %s of %s at %s ETA %s' %
(percent_str, data_len_str, speed_str, eta_str), skip_eol=True)
self.to_cons_title(u'youtube-dl - %s of %s at %s ETA %s' %
(percent_str.strip(), data_len_str.strip(), speed_str.strip(), eta_str.strip()))