Revert "Added random number generation for sleep-interval"
This reverts commit 9903d36ca61fe3a76a4a9e7d6b94a3a77ee3864b.
This commit is contained in:
parent
9903d36ca6
commit
c69aecf56a
@ -248,8 +248,7 @@ class YoutubeDL(object):
|
||||
source_address: (Experimental) Client-side IP address to bind to.
|
||||
call_home: Boolean, true iff we are allowed to contact the
|
||||
youtube-dl servers for debugging.
|
||||
sleep_interval: A random number of seconds to sleep before each download.
|
||||
The script will choose a random number below sleep_interval.
|
||||
sleep_interval: Number of seconds to sleep before each download.
|
||||
listformats: Print an overview of available video formats and exit.
|
||||
list_thumbnails: Print a table of all thumbnails and exit.
|
||||
match_filter: A function that gets called with the info_dict of
|
||||
|
@ -4,7 +4,6 @@ import os
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
import random
|
||||
|
||||
from ..compat import compat_os_name
|
||||
from ..utils import (
|
||||
@ -343,7 +342,7 @@ class FileDownloader(object):
|
||||
})
|
||||
return True
|
||||
|
||||
sleep_interval = random.randrange(self.params.get('sleep_interval'))
|
||||
sleep_interval = self.params.get('sleep_interval')
|
||||
if sleep_interval:
|
||||
self.to_screen('[download] Sleeping %s seconds...' % sleep_interval)
|
||||
time.sleep(sleep_interval)
|
||||
|
Loading…
x
Reference in New Issue
Block a user