diff options
author | Sergey M․ <[email protected]> | 2017-09-24 00:12:40 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2017-09-24 00:12:40 +0700 |
commit | 011da618bdb907cbe02aacefba421dad4cf49a4d (patch) | |
tree | f236f5f28a7daad1c9f45b2037e30a4dab911f7f | |
parent | 4c54b89e0310abd6be643604dc0f1ec3a608b68d (diff) | |
download | youtube-dl-011da618bdb907cbe02aacefba421dad4cf49a4d.tar.gz youtube-dl-011da618bdb907cbe02aacefba421dad4cf49a4d.zip |
[openload] Fix _load_cookies for python 2.6
-rw-r--r-- | youtube_dl/extractor/openload.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py index da1ef02e5..b50d6c77b 100644 --- a/youtube_dl/extractor/openload.py +++ b/youtube_dl/extractor/openload.py @@ -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();'): """ |