]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[openload] Fix _load_cookies for python 2.6
authorSergey M․ <dstftw@gmail.com>
Sat, 23 Sep 2017 17:12:40 +0000 (00:12 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 23 Sep 2017 17:12:40 +0000 (00:12 +0700)
youtube_dl/extractor/openload.py

index da1ef02e56a0c6fa470b91238716b2b8413980b7..b50d6c77b4e2fad46bf3d5ada798f1cb8f255a29 100644 (file)
@@ -8,7 +8,10 @@ import subprocess
 import tempfile
 
 from .common import InfoExtractor
-from ..compat import compat_urlparse
+from ..compat import (
+    compat_urlparse,
+    compat_kwargs,
+)
 from ..utils import (
     check_executable,
     determine_ext,
@@ -158,7 +161,7 @@ class PhantomJSwrapper(object):
                 cookie['rest'] = {'httpOnly': None}
             if 'expiry' in cookie:
                 cookie['expire_time'] = cookie['expiry']
-            self.extractor._set_cookie(**cookie)
+            self.extractor._set_cookie(**compat_kwargs(cookie))
 
     def get(self, url, html=None, video_id=None, note=None, note2='Executing JS on webpage', headers={}, jscode='saveAndExit();'):
         """