A feature-rich command-line audio/video downloader
[openload] Fix _load_cookies for python 2.6
Sergey M․011da618bdb9
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.pyindex da1ef02e56..b50d6c77b4 100644--- a/youtube_dl/extractor/openload.py+++ b/youtube_dl/extractor/openload.py@@ -8,7 +8,10 @@ import subprocessimport tempfilefrom .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();'):"""