]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[Openload] Fixed Extraction
authorVijay Singh <sudovijay@users.noreply.github.com>
Mon, 13 Mar 2017 23:49:18 +0000 (05:19 +0530)
committerYen Chi Hsuan <yan12125@gmail.com>
Tue, 14 Mar 2017 06:03:52 +0000 (14:03 +0800)
They did changed it again.

youtube_dl/extractor/openload.py

index 9a42ab895bf3ce78607e36e85c82b54196aaefdf..5ea749f35dc0d8622de1f1b15b140d6963b007ff 100644 (file)
@@ -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))