Skip to content

A feature-rich command-line audio/video downloader

Merge pull request #1181 from h3xx/master

Jaime Marquínez Ferrándiz6d38616e67ff
diff --cc youtube_dl/FileDownloader.py
index 217c4a52f5,ab06533c0c..4f6a238351
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@@ -239,7 -235,9 +239,9 @@@ class FileDownloader(object)
if self.params.get('noprogress', False):
self.to_screen(u'[download] Download completed')
else:
- self.to_screen(u'')
- clear_line = (u'\x1b[K' if sys.stderr.isatty() and os.name != 'nt' else u'')
++ clear_line = (u'\x1b[K' if sys.stderr.isatty() and os.name != 'nt' else u'')
+ self.to_screen(u'\r%s[download] 100%% of %s in %ss' %
+ (clear_line, data_len_str, int(tot_time)))
def _download_with_rtmpdump(self, filename, url, player_url, page_url, play_path, tc_url):
self.report_destination(filename)