diff --git a/plugin.video.alfa/channels/pepecine.json b/plugin.video.alfa/channels/pepecine.json index a29e490f..39e0748d 100755 --- a/plugin.video.alfa/channels/pepecine.json +++ b/plugin.video.alfa/channels/pepecine.json @@ -35,6 +35,24 @@ "default": true, "enabled": true, "visible": true + }, + { + "id": "filter_languages", + "type": "list", + "label": "Mostrar enlaces en idioma...", + "default": 0, + "enabled": true, + "visible": true, + "lvalues": [ + "No filtrar", + "Español", + "Inglés", + "Latino", + "VO", + "VOS", + "VOSI", + "OVOS" + ] } ] } diff --git a/plugin.video.alfa/channels/pepecine.py b/plugin.video.alfa/channels/pepecine.py index 5becca9b..72bb3424 100755 --- a/plugin.video.alfa/channels/pepecine.py +++ b/plugin.video.alfa/channels/pepecine.py @@ -13,6 +13,7 @@ from core import servertools from core import tmdb from core.item import Item, InfoLabels from platformcode import config, logger +from channels import filtertools host = "https://pepecine.io" @@ -20,10 +21,6 @@ IDIOMAS = {'es': 'Español', 'en': 'Inglés', 'la': 'Latino', 'su': 'VOSE', 'vo' list_idiomas = IDIOMAS.values() list_language = ['default'] -CALIDADES = ['SD', 'HDiTunes', 'Micro-HD-720p', 'Micro-HD-1080p', '1080p', '720p'] -list_quality = CALIDADES - - perpage = 20 def mainlist(item): @@ -68,6 +65,7 @@ def mainlist(item): url = host + '/donde-ver?q=', action ='search', type = 'movie')) + return itemlist @@ -118,7 +116,7 @@ def search_section(item, data, sectionType): thumbnail = thumbnail, url = url) if sectionType == "series": - item.show = title; + newitem.show = title; itemlist.append(newitem) return itemlist @@ -288,12 +286,13 @@ def seasons_episodes(item): reEpisodes = re.findall("]+col-sm-3[^>]+href *= *[\"'](?P[^\"']+).*?]+src *= *[\"'](?P[^\"']+).*?]+>(?P.*?)</a>", data, re.MULTILINE | re.DOTALL) seasons = [item.clone(action = "findvideos", - title = re.sub("<b>Episodio (\d+)</b> - T(\d+) \| {0} \| ".format(item.show), "\g<2>x\g<1> - ", title), + title = re.sub("<b>Episodio (\d+)</b> - T(\d+) \|[^\|]*\| ".format(item.show), "\g<2>x\g<1> - ", title), thumbnail = thumbnail, url = url) for url, thumbnail, title in reEpisodes] return seasons + def findvideos(item): logger.info() itemlist=[] @@ -360,7 +359,7 @@ def findvideos(item): text_color="green", action="add_pelicula_to_library" )) - return itemlist + return filtertools.get_links(itemlist, item, list_idiomas) def play(item):