[openload] Temporary fix (#10408)
[youtube-dl] / youtube_dl / extractor / openload.py
index e181d0b3aa1da1af48b0394aa349ca7bff51f109..76316ca2f50c7c42649bd8dbbdf2285dbd4af05f 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 += 3
             video_url_chars += compat_chr(j)
 
         video_url = 'https://openload.co/stream/%s?mime=true' % ''.join(video_url_chars)