From 0fcbebeef0df8572412ff025d5f46011585c8d41 Mon Sep 17 00:00:00 2001 From: Pratyush Singh Date: Mon, 25 Jul 2016 16:59:28 +0530 Subject: [PATCH] Fixed wrongly declared max_sleep_interal --- youtube_dl/downloader/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/downloader/common.py b/youtube_dl/downloader/common.py index 075c425be..7714f111f 100644 --- a/youtube_dl/downloader/common.py +++ b/youtube_dl/downloader/common.py @@ -346,7 +346,7 @@ class FileDownloader(object): sleep_interval = self.params.get('sleep_interval') if sleep_interval: min_sleep_interval = sleep_interval - max_sleep_interval = self.params.get('max_sleep_interval') or min_sleep_interval + max_sleep_interval = self.params.get('max_sleep_interval') if self.params.get('max_sleep_interval') else min_sleep_interval sleep_time = random.uniform( min_sleep_interval,