diff options
author | sceext <sceext@foxmail.com> | 2015-07-18 12:29:35 +0800 |
---|---|---|
committer | sceext <sceext@foxmail.com> | 2015-07-18 12:34:26 +0800 |
commit | 1b541d8d6ee5e3543253501d725af7ce4a55cad8 (patch) | |
tree | 679dc3684f5cae17e5fac22e9af8a120afd6a48e /youtube_dl/extractor | |
parent | f29ac588ddb5b36ebfe38e3a809a70cf0cb543a6 (diff) |
[iqiyi] fix iqiyi (2015-07-17), update the md5 salt (enc_key) to iqiyi latest (2015-07-17) flash player.
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/iqiyi.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/youtube_dl/extractor/iqiyi.py b/youtube_dl/extractor/iqiyi.py index 0f6707d7c..ac5416953 100644 --- a/youtube_dl/extractor/iqiyi.py +++ b/youtube_dl/extractor/iqiyi.py @@ -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): |