]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[openload] Fix extraction (closes #10408)
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 28 Aug 2016 12:27:08 +0000 (20:27 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 28 Aug 2016 12:27:52 +0000 (20:27 +0800)
Thanks to @yokrysty again!

ChangeLog
youtube_dl/extractor/openload.py

index d3496b5dc555a88995e31413b91d0d50478aeb31..5d7a052a5bcfd59accac3a510f02e90fc6168b41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Extractors
+* [openload] Fix extraction (#10408)
+
+
 version 2016.08.28
 
 Core
index e181d0b3aa1da1af48b0394aa349ca7bff51f109..c8dde7ae325c01363dce7b8c92a74506ba57558e 100644 (file)
@@ -55,10 +55,12 @@ class OpenloadIE(InfoExtractor):
 
         video_url_chars = []
 
-        for c in enc_data:
+        for idx, c in enumerate(enc_data):
             j = compat_ord(c)
             if j >= 33 and j <= 126:
                 j = ((j + 14) % 94) + 33
+            if idx == len(enc_data) - 1:
+                j += 2
             video_url_chars += compat_chr(j)
 
         video_url = 'https://openload.co/stream/%s?mime=true' % ''.join(video_url_chars)