diff --git a/plugin.video.alfa/channels/canalpelis.json b/plugin.video.alfa/channels/canalpelis.json index 86b5856e..e88d7a0a 100644 --- a/plugin.video.alfa/channels/canalpelis.json +++ b/plugin.video.alfa/channels/canalpelis.json @@ -38,6 +38,8 @@ "visible": true, "lvalues": [ "Sin color", + "Perfil 5", + "Perfil 4", "Perfil 3", "Perfil 2", "Perfil 1" diff --git a/plugin.video.alfa/channels/canalpelis.py b/plugin.video.alfa/channels/canalpelis.py old mode 100755 new mode 100644 index 728ba241..364541bc --- a/plugin.video.alfa/channels/canalpelis.py +++ b/plugin.video.alfa/channels/canalpelis.py @@ -127,7 +127,7 @@ def peliculas(item): data = httptools.downloadpage(item.url).data data = re.sub(r"\n|\r|\t|\(.*?\)|\s{2}| ", "", data) - # logger.info(data) + logger.info(data) patron = '
([^.*?' # img, title.strip() patron += '(.*?)/div>.*?' # rating @@ -138,7 +138,8 @@ def peliculas(item): matches = scrapertools.find_multiple_matches(data, patron) for scrapedthumbnail, scrapedtitle, rating, calidad, scrapedurl, year in matches[item.page:item.page + 20]: - if 'Próximamente' not in calidad: + if 'Próximamente' not in calidad and '-XXX.jpg' not in scrapedthumbnail: + scrapedtitle = scrapedtitle.replace('Ver ', '').strip() contentTitle = scrapedtitle.partition(':')[0].partition(',')[0] title = "%s [COLOR green][%s][/COLOR] [COLOR yellow][%s][/COLOR]" % (