1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-01-18 23:03:05 +01:00

Correct ETA

This commit is contained in:
8street 2025-01-06 15:36:25 +03:00
parent 0b6b7742c2
commit e43bc2bb01

View file

@ -300,7 +300,7 @@ class HttpFD(FileDownloader):
if ctx.data_len is None:
eta = None
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({
'status': 'downloading',