1
0
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:
xantares 2015-02-05 08:29:51 +01:00
parent 7dfc356625
commit 662972a116

View File

@ -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 = []