aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-10-10 15:03:01 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-10-10 15:03:01 +0800
commit6a959f2e5266dcc6037a33589eb34fad9190c63e (patch)
tree67ff05084468277b05ceffd821b25ad5e98b06b6 /youtube_dl
parent47c165c3a9f40dd9a175b11f29f9e2002fdda8a9 (diff)
[iqiyi] Update enc_key
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/iqiyi.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/iqiyi.py b/youtube_dl/extractor/iqiyi.py
index ce1ab3820..0e53cb154 100644
--- a/youtube_dl/extractor/iqiyi.py
+++ b/youtube_dl/extractor/iqiyi.py
@@ -191,7 +191,7 @@ class IqiyiIE(InfoExtractor):
'vid': video_id,
'vinfo': 1,
'tm': tm,
- 'enc': self.md5_text((enc_key + tail)[1:64:2] + tail),
+ 'enc': self.md5_text(enc_key + tail),
'qyid': _uuid,
'tn': random.random(),
'um': 0,
@@ -205,7 +205,9 @@ class IqiyiIE(InfoExtractor):
def get_enc_key(self, swf_url, video_id):
# TODO: automatic key extraction
- enc_key = 'eac64f22daf001da6ba9aa8da4d501508bbe90a4d4091fea3b0582a85b38c2cc' # last update at 2015-09-23-23 for Zombie::bite
+ # last update at 2015-10-10 for Zombie::bite
+ # '7239670519b6ac209a0bee4ef0446a6b24894b8ac2751506e42116212a0d0272e505'[2:66][1::2]
+ enc_key = '97596c0abee04ab49ba25564161ad225'
return enc_key
def _real_extract(self, url):