aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorVijay Singh <sudovijay@users.noreply.github.com>2017-03-18 04:32:55 +0530
committerSergey M <dstftw@gmail.com>2017-03-18 07:02:55 +0800
commit5f0daab1ca60803f4f49b344ddb3757c418a2d8e (patch)
tree5879df93603455ad1bf9df5ff57c5341560a31a9 /youtube_dl
parent2a721cdff2da0a9267c96ff2f4c19cda4ce0ab83 (diff)
[openload] Fix extraction
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/openload.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py
index fa876b127..435aec28e 100644
--- a/youtube_dl/extractor/openload.py
+++ b/youtube_dl/extractor/openload.py
@@ -80,8 +80,8 @@ class OpenloadIE(InfoExtractor):
first_char = ord(ol_id[0])
key = first_char - 55
maxKey = max(2, key)
- key = min(maxKey, len(ol_id) - 26)
- t = ol_id[key:key + 24]
+ key = min(maxKey, len(ol_id) - 38)
+ t = ol_id[key:key + 36]
hashMap = {}
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:
i = int(C, 10)
h += 1
- index = H % 8
+ index = H % 12
A = hashMap[index]
i ^= 213