From f457fb5f01307f6ea71dd46eff829d9c99522e23 Mon Sep 17 00:00:00 2001 From: xantares Date: Mon, 16 Feb 2015 19:09:35 +0100 Subject: [PATCH] add speed & eta --- youtube_dl/downloader/f4m.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/downloader/f4m.py b/youtube_dl/downloader/f4m.py index e4c123162..a8a51546e 100644 --- a/youtube_dl/downloader/f4m.py +++ b/youtube_dl/downloader/f4m.py @@ -337,6 +337,10 @@ class F4mFD(FileDownloader): toplevel_status['downloaded_bytes'] = state['downloaded_bytes'] if (state['downloaded_bytes'] > 0) and (progress > 0): toplevel_status['total_bytes'] = int(100.0 * state['downloaded_bytes'] / progress) + if 'speed' in status: + toplevel_status['speed'] = status['speed'] + if 'eta' in status: + toplevel_status['eta'] = status['eta'] for hook in self._progress_hooks: hook(toplevel_status)