projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[srf] Support audios (closes #7760)
[youtube-dl]
/
youtube_dl
/
extractor
/
iqiyi.py
diff --git
a/youtube_dl/extractor/iqiyi.py
b/youtube_dl/extractor/iqiyi.py
index 2ce6627a481351dc6a134f1a5488bcd12e368021..2df1da3f00a9d9655a0c9f6a447510dcf9e2caf0 100644
(file)
--- a/
youtube_dl/extractor/iqiyi.py
+++ b/
youtube_dl/extractor/iqiyi.py
@@
-125,7
+125,7
@@
class IqiyiIE(InfoExtractor):
note='Download path key of segment %d for format %s' % (segment_index + 1, format_id)
)['t']
t = str(int(math.floor(int(tm) / (600.0))))
note='Download path key of segment %d for format %s' % (segment_index + 1, format_id)
)['t']
t = str(int(math.floor(int(tm) / (600.0))))
- return
hashlib.md5((t + mg + x).encode('utf8')).hexdigest(
)
+ return
self.md5_text(t + mg + x
)
video_urls_dict = {}
for format_item in data['vp']['tkl'][0]['vs']:
video_urls_dict = {}
for format_item in data['vp']['tkl'][0]['vs']:
@@
-186,12
+186,12
@@
class IqiyiIE(InfoExtractor):
tail = tm + tvid
param = {
'key': 'fvip',
tail = tm + tvid
param = {
'key': 'fvip',
- 'src':
hashlib.md5(b'youtube-dl').hexdigest(
),
+ 'src':
self.md5_text('youtube-dl'
),
'tvId': tvid,
'vid': video_id,
'vinfo': 1,
'tm': tm,
'tvId': tvid,
'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,
'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
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-22 for Zombie::bite
+ # '7223c67061dbea1259d0ceb44f44b6d62288f4f80c972170de5201d2321060270e05'[2:66][0::2]
+ enc_key = '2c76de15dcb44bd28ff0927d50d31620'
return enc_key
def _real_extract(self, url):
return enc_key
def _real_extract(self, url):