From d324742a17598f1b6de5db63b6858ef62355dfce Mon Sep 17 00:00:00 2001 From: arichi Date: Sun, 18 Dec 2016 21:08:54 +0800 Subject: [PATCH] throttling_start should start with None --- youtube_dl/downloader/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index 5ac132773..f9cd23a2d 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -227,7 +227,7 @@ class HttpFD(FileDownloader): now = None # needed for slow_down() in the first loop run before = start # start measuring peak_rate = 0 - throttling_start = time.time() + throttling_start = None throttling_threshold = None throttling_start_size = 0 while True: