|
|
@ -75,17 +75,20 @@ class OpenloadIE(InfoExtractor):
|
|
|
|
'<span[^>]+id="[^"]+"[^>]*>([0-9]+)</span>',
|
|
|
|
'<span[^>]+id="[^"]+"[^>]*>([0-9]+)</span>',
|
|
|
|
webpage, 'openload ID')
|
|
|
|
webpage, 'openload ID')
|
|
|
|
|
|
|
|
|
|
|
|
first_three_chars = int(float(ol_id[0:][:3]))
|
|
|
|
first_two_chars = int(float(ol_id[0:][:2]))
|
|
|
|
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])) +
|
|
|
|
key = int(float(ol_id[num + 3:][:2]))
|
|
|
|
first_three_chars - fifth_char * int(float(ol_id[num + 3:][:2])))
|
|
|
|
urlcode[key] = compat_chr(int(float(ol_id[num:][:3])) - first_two_chars)
|
|
|
|
num += 5
|
|
|
|
num += 5
|
|
|
|
|
|
|
|
|
|
|
|
video_url = 'https://openload.co/stream/' + urlcode
|
|
|
|
sorted(urlcode, key=lambda key: urlcode[key])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(
|
|
|
|
title = self._og_search_title(webpage, default=None) or self._search_regex(
|
|
|
|
r'<span[^>]+class=["\']title["\'][^>]*>([^<]+)', webpage,
|
|
|
|
r'<span[^>]+class=["\']title["\'][^>]*>([^<]+)', webpage,
|
|
|
|