Added --sleep-interval option
[youtube-dl] / youtube_dl / utils.py
index e40b367c255719046bf2d5dd2fd63bc6bb2e4d8a..d199d26d26f6e1c4077021c05e8e19f7f7d9feb3 100644 (file)
@@ -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):