Merge remote-tracking branch 'rupertbaxter2/master'
Conflicts: youtube_dl/__init__.py youtube_dl/downloader/common.py
This commit is contained in:
commit
5f0d813d93
4 changed files with 18 additions and 0 deletions
|
@ -284,6 +284,7 @@ class FileDownloader(object):
|
|||
"""Download to a filename using the info from info_dict
|
||||
Return True on success and False otherwise
|
||||
"""
|
||||
|
||||
nooverwrites_and_exists = (
|
||||
self.params.get('nooverwrites', False)
|
||||
and os.path.exists(encodeFilename(filename))
|
||||
|
@ -305,6 +306,11 @@ class FileDownloader(object):
|
|||
})
|
||||
return True
|
||||
|
||||
sleep_interval = self.params.get('sleep_interval')
|
||||
if sleep_interval:
|
||||
self.to_screen('[download] Sleeping %s seconds...' % sleep_interval)
|
||||
time.sleep(sleep_interval)
|
||||
|
||||
return self.real_download(filename, info_dict)
|
||||
|
||||
def real_download(self, filename, info_dict):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue