mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-25 09:03:00 +08:00
Fixed wrongly declared max_sleep_interal
This commit is contained in:
parent
4ed2ebd7f9
commit
0fcbebeef0
@ -346,7 +346,7 @@ class FileDownloader(object):
|
|||||||
sleep_interval = self.params.get('sleep_interval')
|
sleep_interval = self.params.get('sleep_interval')
|
||||||
if sleep_interval:
|
if sleep_interval:
|
||||||
min_sleep_interval = 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(
|
sleep_time = random.uniform(
|
||||||
min_sleep_interval,
|
min_sleep_interval,
|
||||||
|
Loading…
Reference in New Issue
Block a user