projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5756537
)
[iqiyi] Use md5_text for all MD5 calls
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 23 Sep 2015 14:25:16 +0000
(22:25 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 23 Sep 2015 14:25:16 +0000
(22:25 +0800)
youtube_dl/extractor/iqiyi.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/iqiyi.py
b/youtube_dl/extractor/iqiyi.py
index 2ce6627a481351dc6a134f1a5488bcd12e368021..ce1ab3820a13a7688d003b1b4a3e02ff8ae78ed5 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,7
+186,7
@@
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,
'tvId': tvid,
'vid': video_id,
'vinfo': 1,