From: Philipp Hagemeister Date: Wed, 6 Nov 2013 13:02:33 +0000 (+0100) Subject: Fix reporting when file size is unkown (Fixes #1731) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=50a886b7abdcce61986a2b589ca2366cc0984a58;p=youtube-dl.git Fix reporting when file size is unkown (Fixes #1731) --- 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)