mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-14 00:17:18 +08:00
[f4m] call progress hook
This commit is contained in:
parent
7dfc356625
commit
662972a116
@ -331,6 +331,14 @@ class F4mFD(FileDownloader):
|
||||
eta = self.calc_eta(start, time.time(), estimated_size, byte_counter)
|
||||
self.report_progress(progress, format_bytes(estimated_size),
|
||||
status.get('speed'), eta)
|
||||
|
||||
# report totals to actual hooks
|
||||
status['status'] = 'downloading'
|
||||
#status['downloaded_bytes'] = state['downloaded_bytes'] ?
|
||||
#status['total_bytes'] = ?
|
||||
for hook in self._progress_hooks:
|
||||
hook(status)
|
||||
|
||||
http_dl.add_progress_hook(frag_progress_hook)
|
||||
|
||||
frags_filenames = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user