aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/openload.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-08-28 20:27:08 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-08-28 20:27:52 +0800
commit40eec6b15cd3135b24cb42fde5ccf62e9a1f0807 (patch)
tree871a2adcf4e052877dbbba22fc4493e0a8cbb4ca /youtube_dl/extractor/openload.py
parent39efc6e3e048a8323c36efcdf6b7434259a35e44 (diff)
[openload] Fix extraction (closes #10408)
Thanks to @yokrysty again!
Diffstat (limited to 'youtube_dl/extractor/openload.py')
-rw-r--r--youtube_dl/extractor/openload.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py
index e181d0b3a..c8dde7ae3 100644
--- a/youtube_dl/extractor/openload.py
+++ b/youtube_dl/extractor/openload.py
@@ -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)