1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-25 04:26:05 +08:00

Fixed wrongly declared max_sleep_interal

This commit is contained in:
Pratyush Singh 2016-07-25 16:59:28 +05:30 committed by GitHub
parent 4ed2ebd7f9
commit 0fcbebeef0

View File

@ -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,