mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
parent
39efc6e3e0
commit
40eec6b15c
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
version <unreleased>
|
||||||
|
|
||||||
|
Extractors
|
||||||
|
* [openload] Fix extraction (#10408)
|
||||||
|
|
||||||
|
|
||||||
version 2016.08.28
|
version 2016.08.28
|
||||||
|
|
||||||
Core
|
Core
|
||||||
|
|
|
@ -55,10 +55,12 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
video_url_chars = []
|
video_url_chars = []
|
||||||
|
|
||||||
for c in enc_data:
|
for idx, c in enumerate(enc_data):
|
||||||
j = compat_ord(c)
|
j = compat_ord(c)
|
||||||
if j >= 33 and j <= 126:
|
if j >= 33 and j <= 126:
|
||||||
j = ((j + 14) % 94) + 33
|
j = ((j + 14) % 94) + 33
|
||||||
|
if idx == len(enc_data) - 1:
|
||||||
|
j += 2
|
||||||
video_url_chars += compat_chr(j)
|
video_url_chars += compat_chr(j)
|
||||||
|
|
||||||
video_url = 'https://openload.co/stream/%s?mime=true' % ''.join(video_url_chars)
|
video_url = 'https://openload.co/stream/%s?mime=true' % ''.join(video_url_chars)
|
||||||
|
|
Loading…
Reference in a new issue