mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 09:02:57 +01:00
Fix reporting when file size is unkown (Fixes #1731)
This commit is contained in:
parent
76e67c2cb6
commit
50a886b7ab
@ -557,7 +557,7 @@ def _do_download(self, filename, info_dict):
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user