Skip to content

Commit

Permalink
[openload] Fix extraction (closes #10408)
Browse files Browse the repository at this point in the history
Thanks to @yokrysty again!
  • Loading branch information
Yen Chi Hsuan committed Aug 28, 2016
1 parent 39efc6e commit 40eec6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
version <unreleased>

Extractors
* [openload] Fix extraction (#10408)


version 2016.08.28

Core
Expand Down
4 changes: 3 additions & 1 deletion youtube_dl/extractor/openload.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ def _real_extract(self, url):

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)
Expand Down

0 comments on commit 40eec6b

Please sign in to comment.