]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[YoutubeDL] Use custom cookie processor
authorSergey M․ <dstftw@gmail.com>
Sun, 6 Sep 2015 00:21:33 +0000 (06:21 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 6 Sep 2015 00:21:33 +0000 (06:21 +0600)
youtube_dl/YoutubeDL.py

index 0afda5ecb61fc4af66f959667703a98e32ef7031..d65253882feed92b941fe3d791626a9a43e852a4 100755 (executable)
@@ -69,6 +69,7 @@ from .utils import (
     version_tuple,
     write_json_file,
     write_string,
+    YoutubeDLCookieProcessor,
     YoutubeDLHandler,
     prepend_extension,
     replace_extension,
@@ -1943,8 +1944,7 @@ class YoutubeDL(object):
             if os.access(opts_cookiefile, os.R_OK):
                 self.cookiejar.load()
 
-        cookie_processor = compat_urllib_request.HTTPCookieProcessor(
-            self.cookiejar)
+        cookie_processor = YoutubeDLCookieProcessor(self.cookiejar)
         if opts_proxy is not None:
             if opts_proxy == '':
                 proxies = {}