mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 21:29:39 +08:00
use _hook_progress instead of loop
This commit is contained in:
parent
1da87389c6
commit
5be178bd1e
@ -343,8 +343,7 @@ class F4mFD(FileDownloader):
|
||||
toplevel_status['speed'] = status['speed']
|
||||
if 'eta' in status:
|
||||
toplevel_status['eta'] = eta
|
||||
for hook in self._progress_hooks:
|
||||
hook(toplevel_status)
|
||||
self._hook_progress(toplevel_status)
|
||||
|
||||
http_dl.add_progress_hook(frag_progress_hook)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user