[adobepass] Fix extraction on older python 2.6
authorSergey M․ <dstftw@gmail.com>
Mon, 19 Jun 2017 15:53:39 +0000 (22:53 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 19 Jun 2017 15:54:53 +0000 (22:54 +0700)
youtube_dl/extractor/adobepass.py

index d57ad85c200015184328ce1e316808f50e6ad3d7..3dfc632e7d2bde2e714ac45f62cf0e435471e5d4 100644 (file)
@@ -6,7 +6,10 @@ import time
 import xml.etree.ElementTree as etree
 
 from .common import InfoExtractor
-from ..compat import compat_urlparse
+from ..compat import (
+    compat_kwargs,
+    compat_urlparse,
+)
 from ..utils import (
     unescapeHTML,
     urlencode_postdata,
@@ -1317,7 +1320,8 @@ class AdobePassIE(InfoExtractor):
         headers = kwargs.get('headers', {})
         headers.update(self.geo_verification_headers())
         kwargs['headers'] = headers
-        return super(AdobePassIE, self)._download_webpage_handle(*args, **kwargs)
+        return super(AdobePassIE, self)._download_webpage_handle(
+            *args, **compat_kwargs(kwargs))
 
     @staticmethod
     def _get_mvpd_resource(provider_id, title, guid, rating):