@@ -893,4 +893,4 @@ def obfs(data, key, n=126):
|
|||||||
number = (ord(chars[i]) + key) % n
|
number = (ord(chars[i]) + key) % n
|
||||||
chars[i] = chr(number)
|
chars[i] = chr(number)
|
||||||
|
|
||||||
return "".join(chars)
|
return "".join(chars)
|
||||||
@@ -434,11 +434,20 @@ def get_vip(url):
|
|||||||
if 'plus'in item:
|
if 'plus'in item:
|
||||||
id, tipo, lang= scrapertools.find_single_match(item,'plus\/(\d+)\/.*?=(\d+).*?=(.*)')
|
id, tipo, lang= scrapertools.find_single_match(item,'plus\/(\d+)\/.*?=(\d+).*?=(.*)')
|
||||||
new_url = 'https://www.elreyxhd.com/pelisplus.php?id=%s&tipo=%s&idioma=%s' % (id, tipo, lang)
|
new_url = 'https://www.elreyxhd.com/pelisplus.php?id=%s&tipo=%s&idioma=%s' % (id, tipo, lang)
|
||||||
|
datax=httptools.downloadpage(new_url, follow_redirects=False).headers.get("location", "")
|
||||||
|
itemlist.append(Item(url=datax))
|
||||||
else:
|
else:
|
||||||
id = scrapertools.find_single_match(item,'episodes\/(\d+)')
|
id = scrapertools.find_single_match(item,'episodes\/(\d+)')
|
||||||
new_url = 'https://www.elreyxhd.com/samir.php?id=%s&tipo=capitulo&idioma=latino&x=&sv=' % id
|
data_vip = httptools.downloadpage(item).data
|
||||||
data=httptools.downloadpage(new_url, follow_redirects=False).headers.get("location", "")
|
patron = '<a href="(.*?)">'
|
||||||
itemlist.append(Item(url=data))
|
matches = re.compile(patron, re.DOTALL).findall(data_vip)
|
||||||
|
for urls in matches:
|
||||||
|
x = scrapertools.find_single_match(urls,r"&x=(\d)&")
|
||||||
|
if x != '':
|
||||||
|
new_url = 'https://www.elreyxhd.com/samir.php?id=%s&tipo=capitulo&idioma=latino&x=%s&sv=si' % (id, x)
|
||||||
|
datax = httptools.downloadpage(new_url, follow_redirects=False).headers.get("location", "")
|
||||||
|
itemlist.append(Item(url=datax))
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,7 @@
|
|||||||
"ignore_urls": [],
|
"ignore_urls": [],
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"pattern": "(?:thevideo.me|tvad.me|thevid.net)/(?:embed-|)([A-z0-9]+)",
|
"pattern": "(?:thevideo.me|tvad.me|thevid.net|thevideo.ch|thevideo.us)/(?:embed-|)([A-z0-9]+)",
|
||||||
"url": "http://thevideo.me/embed-\\1.html"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "(?:thevideo.me|tvad.me|thevid.net|thevideo.us)/(?:embed-|)([A-z0-9]+)",
|
|
||||||
"url": "http://thevideo.me/embed-\\1.html"
|
"url": "http://thevideo.me/embed-\\1.html"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user