aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-11-06 14:02:33 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-11-06 14:02:33 +0100
commit50a886b7abdcce61986a2b589ca2366cc0984a58 (patch)
tree2d0766dd8ae911eefd62417b6bb3c27144c69ab4 /youtube_dl/FileDownloader.py
parent76e67c2cb6bd041a84756ec291edf4028171fdfe (diff)
Fix reporting when file size is unkown (Fixes #1731)
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 47f678811..b0f26fc6f 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -557,7 +557,7 @@ class FileDownloader(object):
# Progress message
speed = self.calc_speed(start, time.time(), byte_counter - resume_len)
if data_len is None:
- self.report_progress('Unknown %', data_len_str, speed_str, 'Unknown ETA')
+ self.report_progress('Unknown %', data_len_str, speed, 'Unknown ETA')
eta = None
else:
percent = self.calc_percent(byte_counter, data_len)