Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
0 additions and
1 deletions
-
youtube_dl/downloader/common.py
|
@ -346,7 +346,6 @@ class FileDownloader(object): |
|
|
min_sleep_interval = self.params.get('sleep_interval') |
|
|
min_sleep_interval = self.params.get('sleep_interval') |
|
|
if min_sleep_interval: |
|
|
if min_sleep_interval: |
|
|
max_sleep_interval = self.params.get('max_sleep_interval', min_sleep_interval) |
|
|
max_sleep_interval = self.params.get('max_sleep_interval', min_sleep_interval) |
|
|
print(min_sleep_interval, max_sleep_interval) |
|
|
|
|
|
sleep_interval = random.uniform(min_sleep_interval, max_sleep_interval) |
|
|
sleep_interval = random.uniform(min_sleep_interval, max_sleep_interval) |
|
|
self.to_screen('[download] Sleeping %s seconds...' % sleep_interval) |
|
|
self.to_screen('[download] Sleeping %s seconds...' % sleep_interval) |
|
|
time.sleep(sleep_interval) |
|
|
time.sleep(sleep_interval) |
|
|