1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-21 17:51:51 +00:00

[Openload] Fixed Extraction

They did changed it again.
This commit is contained in:
Vijay Singh 2017-03-14 05:19:18 +05:30 committed by Yen Chi Hsuan
parent 66bf351f80
commit 398887b4c0

View file

@ -96,14 +96,16 @@ class OpenloadIE(InfoExtractor):
h = 0 h = 0
while h < len(v): while h < len(v):
B = v[h:h + 2] B = v[h:h + 3]
i = int(B, 16) i = int(B, 16)
index = (h / 2) % 10 if (h / 3) % 3 == 0:
i = int(B, 8)
index = (h / 3) % 10
A = hashMap[index] A = hashMap[index]
i = i ^ 96 i = i ^ 47
i = i ^ A i = i ^ A
video_url_chars.append(compat_chr(i)) video_url_chars.append(compat_chr(i))
h += 2 h += 3
video_url = 'https://openload.co/stream/%s?mime=true' video_url = 'https://openload.co/stream/%s?mime=true'
video_url = video_url % (''.join(video_url_chars)) video_url = video_url % (''.join(video_url_chars))