1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-10-31 22:55:26 +00:00

[openload] Fix extraction (closes #10408, closes #10727)

Thanks to @daniel100097 for providing a working version
This commit is contained in:
Yen Chi Hsuan 2016-09-23 01:47:01 +08:00
parent 628406db96
commit 4ddcb5999d
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,7 @@
version <unreleased> version <unreleased>
Extractors Extractors
* [openload] Fix extraction (#10408)
+ [ustream] Support the new HLS streams (#10698) + [ustream] Support the new HLS streams (#10698)
version 2016.09.19 version 2016.09.19

View file

@ -51,7 +51,8 @@ class OpenloadIE(InfoExtractor):
# declared to be freely used in youtube-dl # declared to be freely used in youtube-dl
# See https://github.com/rg3/youtube-dl/issues/10408 # See https://github.com/rg3/youtube-dl/issues/10408
enc_data = self._html_search_regex( enc_data = self._html_search_regex(
r'<span[^>]+id="hiddenurl"[^>]*>([^<]+)</span>', webpage, 'encrypted data') r'<span[^>]*>([^<]+)</span>\s*<span[^>]*>[^<]+</span>\s*<span[^>]+id="streamurl"',
webpage, 'encrypted data')
video_url_chars = [] video_url_chars = []
@ -60,7 +61,7 @@ class OpenloadIE(InfoExtractor):
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: if idx == len(enc_data) - 1:
j += 3 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)