maxipelis24:correcciones

This commit is contained in:
chivmalev
2019-03-12 12:06:34 -03:00
parent e7b24c54b5
commit 097207ba8b

View File

@@ -17,7 +17,7 @@ host = "https://maxipelis24.tv"
IDIOMAS = {'Latino': 'Latino', 'Subtitulado': 'VOSE', 'Español': 'CAST'}
list_language = IDIOMAS.values()
list_quality = []
list_servers = ['rapidvideo', 'vidoza', 'openload', 'streamango']
list_servers = ['rapidvideo', 'vidoza', 'openload', 'streamango', 'okru']
def mainlist(item):
@@ -53,7 +53,6 @@ def category(item):
itemlist = []
data = httptools.downloadpage(item.url).data
data = re.sub(r"\n|\r|\t|\s{2}| ", "", data)
if item.cat == 'genre':
data = scrapertools.find_single_match(
data, '<h3>Géneros <span class="icon-sort">.*?</ul>')
@@ -106,7 +105,6 @@ def movies(item):
if next_page:
itemlist.append(item.clone(url=next_page, page=0,
title=" Siguiente »"))
return itemlist
@@ -120,11 +118,24 @@ def findvideos(item):
patron = "li>.*?href=.*?>([^\s]+)"
matches1 = re.compile(patron, re.DOTALL).findall(data1)
for lang in matches1:
if "VIP" in lang:
continue
idioma = lang
patron = '<div id="div.*?<div class="movieplay".*?(?:iframe.*?src|IFRAME SRC)="([^&]+)&'
matches = re.compile(patron, re.DOTALL).findall(data)
for link in matches:
if 'ok.ru' in link:
patron = '<div id="div.*?<div class="movieplay".*?(?:iframe.*?src|IFRAME SRC)="([^"]+)"'
matches = re.compile(patron, re.DOTALL).findall(data)
for link in matches:
if not link.startswith("https"):
url = "https:%s" % link
title = '%s'
new_item = Item(channel=item.channel, title=title, url=url,
action='play', language=IDIOMAS[idioma], infoLabels=item.infoLabels)
itemlist.append(new_item)
if 'maxipelis24.tv/hideload/?' in link:
id_letter = scrapertools.find_single_match(link, '?(\w)d')
id_type = '%sd' % id_letter
@@ -138,7 +149,6 @@ def findvideos(item):
follow_redirects=False)
url = video_data.headers['location']
title = '%s'
else:
patron = '<div id="div.*?<div class="movieplay".*?(?:iframe.*?src|IFRAME SRC)="([^"]+)"'
matches = re.compile(patron, re.DOTALL).findall(data)