From: Jaime Marquínez Ferrándiz Date: Wed, 28 Aug 2013 08:50:57 +0000 (+0200) Subject: Merge pull request #1181 from h3xx/master X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=6d38616e67ff9859bce2a7bea2ec4a844530eb71;p=youtube-dl Merge pull request #1181 from h3xx/master Add some verbosity when reporting finished downloads Remove the mixed use of tabs and spaces for indentation. --- 6d38616e67ff9859bce2a7bea2ec4a844530eb71 diff --cc youtube_dl/FileDownloader.py index 217c4a52f,ab06533c0..4f6a23835 --- 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)