mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 12:40:11 +09:00
[openload] Fix extraction (closes #10408)
Just a minor fix for openload
This commit is contained in:
parent
1f393a3241
commit
06e9363b7a
@ -64,16 +64,17 @@ class OpenloadIE(InfoExtractor):
|
|||||||
raise ExtractorError('File not found', expected=True)
|
raise ExtractorError('File not found', expected=True)
|
||||||
|
|
||||||
ol_id = self._search_regex(
|
ol_id = self._search_regex(
|
||||||
'<span[^>]+id="[a-zA-Z0-9]+x"[^>]*>([0-9]+)</span>',
|
'<span[^>]+id="[^"]+"[^>]*>([0-9]+)</span>',
|
||||||
webpage, 'openload ID')
|
webpage, 'openload ID')
|
||||||
|
|
||||||
first_two_chars = int(float(ol_id[0:][:2]))
|
first_three_chars = int(float(ol_id[0:][:3]))
|
||||||
|
fifth_char = int(float(ol_id[3:5]))
|
||||||
urlcode = ''
|
urlcode = ''
|
||||||
num = 2
|
num = 5
|
||||||
|
|
||||||
while num < len(ol_id):
|
while num < len(ol_id):
|
||||||
urlcode += compat_chr(int(float(ol_id[num:][:3])) -
|
urlcode += compat_chr(int(float(ol_id[num:][:3])) +
|
||||||
first_two_chars * int(float(ol_id[num + 3:][:2])))
|
first_three_chars - fifth_char * int(float(ol_id[num + 3:][:2])))
|
||||||
num += 5
|
num += 5
|
||||||
|
|
||||||
video_url = 'https://openload.co/stream/' + urlcode
|
video_url = 'https://openload.co/stream/' + urlcode
|
||||||
|
Loading…
Reference in New Issue
Block a user