projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a721cd
)
[openload] Fix extraction
author
Vijay Singh
<sudovijay@users.noreply.github.com>
Fri, 17 Mar 2017 23:02:55 +0000
(
04:32
+0530)
committer
Sergey M
<dstftw@gmail.com>
Fri, 17 Mar 2017 23:02:55 +0000
(07:02 +0800)
youtube_dl/extractor/openload.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/openload.py
b/youtube_dl/extractor/openload.py
index fa876b1277c783da1dc9bb9cfacbddcdc6605c56..435aec28e2fbf20e29399c12281ff7d7c6a9fa3f 100644
(file)
--- 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