From 097207ba8b55abcf909c6cf6f02394438227de9a Mon Sep 17 00:00:00 2001 From: chivmalev Date: Tue, 12 Mar 2019 12:06:34 -0300 Subject: [PATCH 1/3] maxipelis24:correcciones --- plugin.video.alfa/channels/maxipelis24.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/plugin.video.alfa/channels/maxipelis24.py b/plugin.video.alfa/channels/maxipelis24.py index 674e8417..bcfb0b3b 100644 --- a/plugin.video.alfa/channels/maxipelis24.py +++ b/plugin.video.alfa/channels/maxipelis24.py @@ -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, '

Géneros .*?') @@ -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 = '
Date: Thu, 14 Mar 2019 16:49:53 -0300 Subject: [PATCH 2/3] maxipelis24:correcciones --- plugin.video.alfa/channels/maxipelis24.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/plugin.video.alfa/channels/maxipelis24.py b/plugin.video.alfa/channels/maxipelis24.py index bcfb0b3b..431a86bf 100644 --- a/plugin.video.alfa/channels/maxipelis24.py +++ b/plugin.video.alfa/channels/maxipelis24.py @@ -14,7 +14,7 @@ from channelselector import get_thumb host = "https://maxipelis24.tv" -IDIOMAS = {'Latino': 'Latino', 'Subtitulado': 'VOSE', 'Español': 'CAST'} +IDIOMAS = {'Latino': 'Latino', 'Subtitulado': 'VOSE', 'Español': 'CAST', 'Castellano':'CAST'} list_language = IDIOMAS.values() list_quality = [] list_servers = ['rapidvideo', 'vidoza', 'openload', 'streamango', 'okru'] @@ -113,18 +113,17 @@ def findvideos(item): itemlist = [] data = httptools.downloadpage(item.url).data data = re.sub(r"\n|\r|\t|\s{2}| ", "", data) - data1 = scrapertools.find_single_match( - data, '
    .*?
') - patron = "li>.*?href=.*?>([^\s]+)" - matches1 = re.compile(patron, re.DOTALL).findall(data1) - for lang in matches1: - if "VIP" in lang: - continue - idioma = lang - - patron = '
.*?
') + patron = 'li>.*?href="#div%s.*?>.*?([^\s]+)' % ot + matches1 = re.compile(patron, re.DOTALL).findall(data1) + for lang in matches1: + if "VIP" in lang: + continue + idioma = lang + if 'ok.ru' in link: patron = '
Date: Thu, 14 Mar 2019 18:33:41 -0300 Subject: [PATCH 3/3] maxipelis24:correcciones --- plugin.video.alfa/channels/maxipelis24.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/channels/maxipelis24.py b/plugin.video.alfa/channels/maxipelis24.py index 431a86bf..9be8e64e 100644 --- a/plugin.video.alfa/channels/maxipelis24.py +++ b/plugin.video.alfa/channels/maxipelis24.py @@ -14,7 +14,7 @@ from channelselector import get_thumb host = "https://maxipelis24.tv" -IDIOMAS = {'Latino': 'Latino', 'Subtitulado': 'VOSE', 'Español': 'CAST', 'Castellano':'CAST'} +IDIOMAS = {'Latino': 'Latino', 'Sub':'VOSE', 'Subtitulado': 'VOSE', 'Español': 'CAST', 'Castellano':'CAST'} list_language = IDIOMAS.values() list_quality = [] list_servers = ['rapidvideo', 'vidoza', 'openload', 'streamango', 'okru'] @@ -117,7 +117,7 @@ def findvideos(item): matches = re.compile(patron, re.DOTALL).findall(data) for ot, link in matches: data1 = scrapertools.find_single_match(data, '
    .*?
') - patron = 'li>.*?href="#div%s.*?>.*?([^\s]+)' % ot + patron = 'li>.*?href="#div%s.*?>.*?([^<|\s]+)' % ot matches1 = re.compile(patron, re.DOTALL).findall(data1) for lang in matches1: if "VIP" in lang: