mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-17 22:57:35 +01:00
[FileDownloader] use moved format_bytes method
This commit is contained in:
parent
31cb6d8fef
commit
d0d2b49ab7
@ -289,7 +289,7 @@ class FileDownloader(object):
|
|||||||
data_len = None
|
data_len = None
|
||||||
if percent > 0:
|
if percent > 0:
|
||||||
data_len = int(downloaded_data_len * 100 / percent)
|
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)
|
self.report_progress(percent, data_len_str, speed, eta)
|
||||||
cursor_in_new_line = False
|
cursor_in_new_line = False
|
||||||
self._hook_progress({
|
self._hook_progress({
|
||||||
|
Loading…
Reference in New Issue
Block a user