From d16e3efffbb3496be7cc40d04cd0622fe02fd1b4 Mon Sep 17 00:00:00 2001 From: Alfa-beto <30815244+Alfa-beto@users.noreply.github.com> Date: Wed, 31 Oct 2018 12:24:45 -0300 Subject: [PATCH] correcciones y novedades MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AnimeFlv: Corrección para videoteca - BlogHorror: Corrección por cambio de estructura - CanalPelis: Corrección por cambio de estructura - Dilo: Correccion en listados de episodios - FanPelis: Corrección en la detección de enlaces - PelisPlus: Corrección en la detección de temporadas, eposidios y enlaces - PelisR: Corrección en la detección de enlaces - RetroSeries: Corrección por cambio de estructura - TuPelicua: Nuevo canal --- plugin.video.alfa/channels/animeflv.py | 2 +- plugin.video.alfa/channels/bloghorror.py | 4 +- plugin.video.alfa/channels/canalpelis.py | 41 ++-- plugin.video.alfa/channels/dilo.py | 3 +- plugin.video.alfa/channels/fanpelis.py | 9 +- plugin.video.alfa/channels/pelisplus.py | 71 ++++--- plugin.video.alfa/channels/pelisr.py | 11 +- plugin.video.alfa/channels/retroseriestv.py | 60 +++--- plugin.video.alfa/channels/tupelicula.json | 77 ++++++++ plugin.video.alfa/channels/tupelicula.py | 205 ++++++++++++++++++++ 10 files changed, 402 insertions(+), 81 deletions(-) create mode 100644 plugin.video.alfa/channels/tupelicula.json create mode 100644 plugin.video.alfa/channels/tupelicula.py diff --git a/plugin.video.alfa/channels/animeflv.py b/plugin.video.alfa/channels/animeflv.py index 14787bcc..de6d7901 100644 --- a/plugin.video.alfa/channels/animeflv.py +++ b/plugin.video.alfa/channels/animeflv.py @@ -181,7 +181,7 @@ def episodios(item): itemlist.append(item.clone(title=title, url=url, action='findvideos', show=info[1])) itemlist = itemlist[::-1] if config.get_videolibrary_support() and len(itemlist) > 0: - itemlist.append(Item(channel=item.channel, title="Añadir esta serie a la videoteca", + itemlist.append(Item(channel=item.channel, title="Añadir esta serie a la videoteca", url=item.url, action="add_serie_to_library", extra="episodios")) return itemlist diff --git a/plugin.video.alfa/channels/bloghorror.py b/plugin.video.alfa/channels/bloghorror.py index 0004b752..210c62bb 100644 --- a/plugin.video.alfa/channels/bloghorror.py +++ b/plugin.video.alfa/channels/bloghorror.py @@ -30,8 +30,8 @@ def mainlist(item): itemlist = [] - itemlist.append(Item(channel=item.channel, fanart=fanart, title="Todas", action="list_all", url=host, - thumbnail=get_thumb('all', auto=True))) + itemlist.append(Item(channel=item.channel, fanart=fanart, title="Todas", action="list_all", + url=host+'/category/terror', thumbnail=get_thumb('all', auto=True))) itemlist.append(Item(channel=item.channel, fanart=fanart, title="Asiaticas", action="list_all", url=host+'/category/asiatico', thumbnail=get_thumb('asiaticas', auto=True))) diff --git a/plugin.video.alfa/channels/canalpelis.py b/plugin.video.alfa/channels/canalpelis.py index cbea6079..3a4a8b5a 100644 --- a/plugin.video.alfa/channels/canalpelis.py +++ b/plugin.video.alfa/channels/canalpelis.py @@ -348,31 +348,38 @@ def episodios(item): return itemlist - def findvideos(item): logger.info() + from lib import generictools + import urllib + import base64 itemlist = [] - data = httptools.downloadpage(item.url).data data = re.sub(r"\n|\r|\t|\(.*?\)|\s{2}| ", "", data) - patron = '
Resultados encontrados:(.*?)genres')
+ patron = '([^<]+)
' matches = re.compile(patron, re.DOTALL).findall(data) for scrapedurl, scrapedthumbnail, scrapedtitle, year, scrapedplot in matches: diff --git a/plugin.video.alfa/channels/tupelicula.json b/plugin.video.alfa/channels/tupelicula.json new file mode 100644 index 00000000..48edd0bc --- /dev/null +++ b/plugin.video.alfa/channels/tupelicula.json @@ -0,0 +1,77 @@ +{ + "id": "tupelicula", + "name": "TuPelicula", + "active": true, + "adult": false, + "language": ["lat", "cast", "*"], + "thumbnail": "https://i.postimg.cc/W4TbdCDP/tupelicula.png", + "banner": "", + "categories": [ + "movie", + "vos" + ], + "settings": [ + { + "id": "include_in_global_search", + "type": "bool", + "label": "Incluir en busqueda global", + "default": false, + "enabled": false, + "visible": false + }, + { + "id": "include_in_newest_peliculas", + "type": "bool", + "label": "Incluir en Novedades - Peliculas", + "default": true, + "enabled": true, + "visible": true + }, + { + "id": "include_in_newest_latino", + "type": "bool", + "label": "Incluir en Novedades - Latino", + "default": true, + "enabled": true, + "visible": true + }, + { + "id": "include_in_newest_castellano", + "type": "bool", + "label": "Incluir en Novedades - Castellano", + "default": true, + "enabled": true, + "visible": true + }, + { + "id": "include_in_newest_infantiles", + "type": "bool", + "label": "Incluir en Novedades - Infantiles", + "default": true, + "enabled": true, + "visible": true + }, + { + "id": "include_in_newest_terror", + "type": "bool", + "label": "Incluir en Novedades - terror", + "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", + "LAT", + "CAST", + "VOSE" + ] + } + ] +} diff --git a/plugin.video.alfa/channels/tupelicula.py b/plugin.video.alfa/channels/tupelicula.py new file mode 100644 index 00000000..592d4710 --- /dev/null +++ b/plugin.video.alfa/channels/tupelicula.py @@ -0,0 +1,205 @@ +# -*- coding: utf-8 -*- +# -*- Channel TuPelicula -*- +# -*- Created for Alfa-addon -*- +# -*- By the Alfa Develop Group -*- + +import re + +from channels import autoplay +from channels import filtertools +from core import httptools +from core import scrapertools +from core import servertools +from core import tmdb +from core.item import Item +from platformcode import config, logger +from channelselector import get_thumb + +host = 'http://www.tupelicula.tv/' + +IDIOMAS = {'la_la': 'LAT', 'es_es':'CAST', 'en_es':'VOSE', 'en_en':'VO'} +list_language = IDIOMAS.values() +list_quality = [] +list_servers = ['xdrive', 'bitertv', 'okru'] + +def get_source(url, referer=None): + logger.info() + if referer is None: + data = httptools.downloadpage(url).data + else: + data = httptools.downloadpage(url, headers={'Referer':referer}).data + data = re.sub(r'\n|\r|\t| |