aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/openload.py
diff options
context:
space:
mode:
authorVijay Singh <sudovijay@users.noreply.github.com>2017-03-14 05:19:18 +0530
committerYen Chi Hsuan <yan12125@gmail.com>2017-03-14 14:03:52 +0800
commit398887b4c09b3691379720314f4918bc094d1b7b (patch)
tree6ddfedf898b9df614cbb94344541e064d07483ad /youtube_dl/extractor/openload.py
parent66bf351f8052fb71dce20c3a5ba1aa507532222e (diff)
downloadyoutube-dl-398887b4c09b3691379720314f4918bc094d1b7b.tar.xz
[Openload] Fixed Extraction
They did changed it again.
Diffstat (limited to 'youtube_dl/extractor/openload.py')
-rw-r--r--youtube_dl/extractor/openload.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py
index 9a42ab895..5ea749f35 100644
--- a/youtube_dl/extractor/openload.py
+++ b/youtube_dl/extractor/openload.py
@@ -96,14 +96,16 @@ class OpenloadIE(InfoExtractor):
h = 0
while h < len(v):
- B = v[h:h + 2]
+ B = v[h:h + 3]
i = int(B, 16)
- index = (h / 2) % 10
+ if (h / 3) % 3 == 0:
+ i = int(B, 8)
+ index = (h / 3) % 10
A = hashMap[index]
- i = i ^ 96
+ i = i ^ 47
i = i ^ A
video_url_chars.append(compat_chr(i))
- h += 2
+ h += 3
video_url = 'https://openload.co/stream/%s?mime=true'
video_url = video_url % (''.join(video_url_chars))