1
0
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:
xantares 2015-02-17 20:05:34 +01:00
parent 1da87389c6
commit 5be178bd1e

View File

@ -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)