mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-23 12:28:44 +03:00
Correct ETA
This commit is contained in:
@@ -300,7 +300,7 @@ class HttpFD(FileDownloader):
|
|||||||
if ctx.data_len is None:
|
if ctx.data_len is None:
|
||||||
eta = None
|
eta = None
|
||||||
else:
|
else:
|
||||||
eta = self.calc_eta(start, time.time(), ctx.data_len - ctx.resume_len, byte_counter - ctx.resume_len)
|
eta = self.calc_eta(ctx.start_time, time.time(), ctx.data_len, byte_counter)
|
||||||
|
|
||||||
self._hook_progress({
|
self._hook_progress({
|
||||||
'status': 'downloading',
|
'status': 'downloading',
|
||||||
|
|||||||
Reference in New Issue
Block a user