]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[iqiyi] fix iqiyi (2015-07-17), update the md5 salt (enc_key) to iqiyi latest (2015...
authorsceext <sceext@foxmail.com>
Sat, 18 Jul 2015 04:29:35 +0000 (12:29 +0800)
committersceext <sceext@foxmail.com>
Sat, 18 Jul 2015 04:34:26 +0000 (12:34 +0800)
youtube_dl/extractor/iqiyi.py

index 0f6707d7cc7a9c3ab563ced28e8d15a23c8a97eb..ac541695320c7d7fa5645140c5e36ed173170a12 100644 (file)
@@ -212,20 +212,7 @@ class IqiyiIE(InfoExtractor):
         return raw_data
 
     def get_enc_key(self, swf_url, video_id):
-        filename, _ = os.path.splitext(url_basename(swf_url))
-        enc_key_json = self._downloader.cache.load('iqiyi-enc-key', filename)
-        if enc_key_json is not None:
-            return enc_key_json[0]
-
-        req = self._request_webpage(
-            swf_url, video_id, note='download swf content')
-        cn = req.read()
-        cn = zlib.decompress(cn[8:])
-        pt = re.compile(b'MixerRemote\x08(?P<enc_key>.+?)\$&vv')
-        enc_key = self._search_regex(pt, cn, 'enc_key').decode('utf8')
-
-        self._downloader.cache.store('iqiyi-enc-key', filename, [enc_key])
-
+        enc_key = '8e29ab5666d041c3a1ea76e06dabdffb'
         return enc_key
 
     def _real_extract(self, url):