projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31cb6d8
)
[FileDownloader] use moved format_bytes method
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 25 Nov 2013 05:17:41 +0000
(06:17 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 25 Nov 2013 05:17:41 +0000
(06:17 +0100)
youtube_dl/FileDownloader.py
patch
|
blob
|
history
diff --git
a/youtube_dl/FileDownloader.py
b/youtube_dl/FileDownloader.py
index c6276d1942105bc9a856dd98c0ca6417b827a7da..27684d0f6a6302ce1f8b23c036190ff6ada0b760 100644
(file)
--- a/
youtube_dl/FileDownloader.py
+++ b/
youtube_dl/FileDownloader.py
@@
-289,7
+289,7
@@
class FileDownloader(object):
data_len = None
if percent > 0:
data_len = int(downloaded_data_len * 100 / percent)
- data_len_str = u'~'
+self.
format_bytes(data_len)
+ data_len_str = u'~'
+
format_bytes(data_len)
self.report_progress(percent, data_len_str, speed, eta)
cursor_in_new_line = False
self._hook_progress({