Added --sleep-interval option
This commit is contained in:
parent
493987fefe
commit
03359e9864
3 changed files with 14 additions and 0 deletions
|
@ -6,6 +6,7 @@ import codecs
|
|||
import contextlib
|
||||
import ctypes
|
||||
import datetime
|
||||
import time
|
||||
import email.utils
|
||||
import errno
|
||||
import getpass
|
||||
|
@ -747,6 +748,8 @@ class YoutubeDLHandler(compat_urllib_request.HTTPHandler):
|
|||
del req.headers['User-agent']
|
||||
req.headers['User-agent'] = req.headers['Youtubedl-user-agent']
|
||||
del req.headers['Youtubedl-user-agent']
|
||||
#print("sleeping\n")
|
||||
#time.sleep(1)
|
||||
return req
|
||||
|
||||
def http_response(self, req, resp):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue