mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-23 21:47:16 +01:00
Merge d3feb430ef into c8680b65f7
This commit is contained in:
commit
2c69bd72fe
1 changed files with 5 additions and 1 deletions
|
|
@ -63,6 +63,10 @@ class HttpFD(FileDownloader):
|
|||
|
||||
ctx.is_resume = ctx.resume_len > 0
|
||||
|
||||
ctx.start_len = 0
|
||||
if ctx.is_resume:
|
||||
ctx.start_len = ctx.resume_len
|
||||
|
||||
class SucceedDownload(Exception):
|
||||
pass
|
||||
|
||||
|
|
@ -295,7 +299,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 - ctx.start_len, byte_counter - ctx.start_len)
|
||||
|
||||
self._hook_progress({
|
||||
'status': 'downloading',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue