]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Merge pull request #1181 from h3xx/master
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 28 Aug 2013 08:50:57 +0000 (10:50 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 28 Aug 2013 08:54:07 +0000 (10:54 +0200)
Add some verbosity when reporting finished downloads

Remove the mixed use of tabs and spaces for indentation.

1  2 
youtube_dl/FileDownloader.py

index 217c4a52f5204ccf471ccb1932a2f322571828eb,ab06533c0c023907c05554613ecd5f934334f329..4f6a238351523448b70b6927077809b636672e84
@@@ -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)