Update peliculasrey.py
This commit is contained in:
@@ -186,39 +186,17 @@ def findvideos(item):
|
|||||||
encontrados.append(scrapedurl)
|
encontrados.append(scrapedurl)
|
||||||
language = language.strip()
|
language = language.strip()
|
||||||
quality = quality.strip()
|
quality = quality.strip()
|
||||||
if "pelismundo" in scrapedurl:
|
itemlist.append(Item(channel=item.channel,
|
||||||
data = httptools.downloadpage(scrapedurl, add_referer = True).data
|
action = "play",
|
||||||
patron = 'sources.*?}],'
|
extra = "",
|
||||||
bloque = scrapertools.find_single_match(data, patron)
|
fulltitle = item.fulltitle,
|
||||||
patron = 'file.*?"([^"]+)".*?label:"([^"]+)"'
|
title = "%s (" + language + ") (" + quality + ")",
|
||||||
match = scrapertools.find_multiple_matches(bloque, patron)
|
thumbnail = item.thumbnail,
|
||||||
for scrapedurl1, scrapedlabel1 in match:
|
url = scrapedurl,
|
||||||
itemtemp.append([scrapedlabel1, scrapedurl1])
|
folder = False,
|
||||||
itemtemp.sort(key=lambda it: int(it[0].replace("p", "")))
|
language = language,
|
||||||
for videoitem in itemtemp:
|
quality = quality
|
||||||
itemlist.append(Item(channel = item.channel,
|
))
|
||||||
action = "play",
|
|
||||||
extra = "hdvids",
|
|
||||||
fulltitle = item.fulltitle,
|
|
||||||
server = "directo",
|
|
||||||
thumbnail = item.thumbnail,
|
|
||||||
title = "%s (" + language + ") (" + videoitem[0] + ")",
|
|
||||||
url = videoitem[1],
|
|
||||||
language = language,
|
|
||||||
quality = videoitem[0]
|
|
||||||
))
|
|
||||||
else:
|
|
||||||
itemlist.append(Item(channel=item.channel,
|
|
||||||
action = "play",
|
|
||||||
extra = "",
|
|
||||||
fulltitle = item.fulltitle,
|
|
||||||
title = "%s (" + language + ") (" + quality + ")",
|
|
||||||
thumbnail = item.thumbnail,
|
|
||||||
url = scrapedurl,
|
|
||||||
folder = False,
|
|
||||||
language = language,
|
|
||||||
quality = quality
|
|
||||||
))
|
|
||||||
itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
|
itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user