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 = '