@@ -98,29 +98,31 @@ def findvideos(item):
|
|||||||
itemlist = []
|
itemlist = []
|
||||||
|
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url).data
|
||||||
data = re.sub(r"\n|\r|\t|\s{2}| ","", data)
|
data = re.sub(r"\n|\r|\t|\s{2}| ","", data)
|
||||||
patron = scrapertools.find_single_match(data, '<div id="player2">(.*?)</div>')
|
|
||||||
patron = '<div id="div.*?<div class="movieplay">.+?[a-zA-Z]="([^&]+)&'
|
patron = '<div id="div.*?<div class="movieplay".*?(?:iframe.*?src|IFRAME SRC)="([^&]+)&'
|
||||||
|
|
||||||
matches = re.compile(patron, re.DOTALL).findall(data)
|
matches = re.compile(patron, re.DOTALL).findall(data)
|
||||||
|
|
||||||
for link in matches:
|
for link in matches:
|
||||||
if 'id=' in link:
|
if 'maxipelis24.tv/hideload/?' in link:
|
||||||
id_type = 'id'
|
if 'id=' in link:
|
||||||
ir_type = 'ir'
|
id_type = 'id'
|
||||||
elif 'ud=' in link:
|
ir_type = 'ir'
|
||||||
id_type = 'ud'
|
elif 'ud=' in link:
|
||||||
ir_type = 'ur'
|
id_type = 'ud'
|
||||||
elif 'od=' in link:
|
ir_type = 'ur'
|
||||||
id_type = 'od'
|
elif 'od=' in link:
|
||||||
ir_type = 'or'
|
id_type = 'od'
|
||||||
elif 'ad=' in link:
|
ir_type = 'or'
|
||||||
id_type = 'ad'
|
elif 'ad=' in link:
|
||||||
ir_type = 'ar'
|
id_type = 'ad'
|
||||||
elif 'ed=' in link:
|
ir_type = 'ar'
|
||||||
id_type = 'ed'
|
elif 'ed=' in link:
|
||||||
ir_type = 'er'
|
id_type = 'ed'
|
||||||
|
ir_type = 'er'
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
id = scrapertools.find_single_match(link, '%s=(.*)' % id_type)
|
id = scrapertools.find_single_match(link, '%s=(.*)' % id_type)
|
||||||
base_link = scrapertools.find_single_match(link, '(.*?)%s=' % id_type)
|
base_link = scrapertools.find_single_match(link, '(.*?)%s=' % id_type)
|
||||||
|
|
||||||
@@ -131,11 +133,18 @@ def findvideos(item):
|
|||||||
url = video_data.headers['location']
|
url = video_data.headers['location']
|
||||||
title = '%s'
|
title = '%s'
|
||||||
|
|
||||||
|
|
||||||
itemlist.append(Item(channel=item.channel, title=title, url=url, action='play',
|
itemlist.append(Item(channel=item.channel, title=title, url=url, action='play',
|
||||||
language='', infoLabels=item.infoLabels))
|
language='', infoLabels=item.infoLabels))
|
||||||
|
|
||||||
itemlist = servertools.get_servers_itemlist(itemlist, lambda x: x.title % x.server.capitalize())
|
itemlist = servertools.get_servers_itemlist(itemlist, lambda x: x.title % x.server.capitalize())
|
||||||
|
if itemlist:
|
||||||
|
if config.get_videolibrary_support():
|
||||||
|
itemlist.append(Item(channel = item.channel, action = ""))
|
||||||
|
itemlist.append(Item(channel=item.channel, title="Añadir a la videoteca", text_color="green",
|
||||||
|
action="add_pelicula_to_library", url=item.url, thumbnail = item.thumbnail,
|
||||||
|
contentTitle = item.contentTitle
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
|
return itemlist
|
||||||
return itemlist
|
|
||||||
|
|||||||
Reference in New Issue
Block a user