1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 17:32:52 +08:00

[Openload] Fixed Extraction Again

They did it again, just a minor change though since the last one
This commit is contained in:
Vijay Singh 2017-03-18 04:31:52 +05:30 committed by GitHub
parent 2a721cdff2
commit 535db92a7f

View File

@ -80,8 +80,8 @@ class OpenloadIE(InfoExtractor):
first_char = ord(ol_id[0]) first_char = ord(ol_id[0])
key = first_char - 55 key = first_char - 55
maxKey = max(2, key) maxKey = max(2, key)
key = min(maxKey, len(ol_id) - 26) key = min(maxKey, len(ol_id) - 38)
t = ol_id[key:key + 24] t = ol_id[key:key + 36]
hashMap = {} hashMap = {}
v = ol_id.replace(t, '') v = ol_id.replace(t, '')
@ -110,7 +110,7 @@ class OpenloadIE(InfoExtractor):
elif H % 2 == 0 and H != 0 and ord(v[H - 1]) < 60: elif H % 2 == 0 and H != 0 and ord(v[H - 1]) < 60:
i = int(C, 10) i = int(C, 10)
h += 1 h += 1
index = H % 8 index = H % 12
A = hashMap[index] A = hashMap[index]
i ^= 213 i ^= 213