From 7e08072b8d17c4789439f563db036297fd5043e6 Mon Sep 17 00:00:00 2001 From: zhuyifei1999 Date: Tue, 1 Mar 2016 22:14:14 +0800 Subject: [PATCH] [downloader/fragment] Set 'total_bytes' in progress hook to None To be consistent with progress hook documentation. Fixes #8711 --- youtube_dl/downloader/fragment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/downloader/fragment.py b/youtube_dl/downloader/fragment.py index 5bc99492b..3bfa9f4f0 100644 --- a/youtube_dl/downloader/fragment.py +++ b/youtube_dl/downloader/fragment.py @@ -62,6 +62,7 @@ class FragmentFD(FileDownloader): 'frag_count': total_frags, 'filename': ctx['filename'], 'tmpfilename': ctx['tmpfilename'], + 'total_bytes': None, } start = time.time()