mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[openload] Semifix extraction (closes #10408)
just updated the code. i don't do much python still i tried to convert my code. lemme know if there is any prob with it
This commit is contained in:
parent
fef51645d6
commit
d94badc755
1 changed files with 10 additions and 7 deletions
|
@ -75,17 +75,20 @@ def _real_extract(self, url):
|
|||
'<span[^>]+id="[^"]+"[^>]*>([0-9]+)</span>',
|
||||
webpage, 'openload ID')
|
||||
|
||||
first_three_chars = int(float(ol_id[0:][:3]))
|
||||
fifth_char = int(float(ol_id[3:5]))
|
||||
urlcode = ''
|
||||
num = 5
|
||||
first_two_chars = int(float(ol_id[0:][:2]))
|
||||
urlcode = {}
|
||||
num = 2
|
||||
|
||||
while num < len(ol_id):
|
||||
urlcode += compat_chr(int(float(ol_id[num:][:3])) +
|
||||
first_three_chars - fifth_char * int(float(ol_id[num + 3:][:2])))
|
||||
key = int(float(ol_id[num + 3:][:2]))
|
||||
urlcode[key] = compat_chr(int(float(ol_id[num:][:3])) - first_two_chars)
|
||||
num += 5
|
||||
|
||||
sorted(urlcode, key=lambda key: urlcode[key])
|
||||
|
||||
video_url = 'https://openload.co/stream/' + urlcode
|
||||
urllink = ''.join(['%s' % (value) for (key, value) in urlcode.items()])
|
||||
|
||||
video_url = 'https://openload.co/stream/' + urllink
|
||||
|
||||
title = self._og_search_title(webpage, default=None) or self._search_regex(
|
||||
r'<span[^>]+class=["\']title["\'][^>]*>([^<]+)', webpage,
|
||||
|
|
Loading…
Reference in a new issue