diff --git a/plugin.video.alfa/addon.xml b/plugin.video.alfa/addon.xml index 06d38c85..14e5af26 100755 --- a/plugin.video.alfa/addon.xml +++ b/plugin.video.alfa/addon.xml @@ -1,5 +1,5 @@  - + @@ -9,17 +9,32 @@ Sumario en Español - [B]Estos son los cambios para esta versión:[/B][CR] - [COLOR green][B]Canales agregados y arreglos[/B][/COLOR] - [I]- Elitetorrent - - Seriespapaya - - Newpct1 -- [COLOR red]Momentáneamente búsqueda deshabilitada[/COLOR][/I][CR] + + icon.png + fanart.jpg + resources/media/general/ss/1.jpg + resources/media/general/ss/2.jpg + resources/media/general/ss/3.jpg + resources/media/general/ss/4.jpg + + [B]Estos son los cambios para esta versión:[/B] + [COLOR green][B]Arreglos de canales[/B][/COLOR] + [I]- Seriespapaya + - Playmax - Gracias a d3v3l0p1n + - Seriesblanco - Posible error en versiones anteriores a kodi 16 por https + - AnimesHD + - Cinetux[/I] + [COLOR green][B]Servidor Nuevo[/B][/COLOR] + [I]- Vidlox [COLOR green][B]Arreglos internos[/B][/COLOR] - [I]- videolibrary_service -- ahora no actualiza una serie de un canal, si está desactivado[/I] + [I]- platformtools - posible solución de favoritos + - videolibrarytools - solución a añadir películas de varios canales[/I] + [COLOR blue]Gracias a devalls por su cooperación en esta release.[/COLOR] Descripción en Español English summary English description + [COLOR red]The owners and submitters to this addon do not host or distribute any of the content displayed by these addons nor do they have any affiliation with the content providers.[/COLOR] all GNU GPL v3 foro diff --git a/plugin.video.alfa/channels/animeshd.py b/plugin.video.alfa/channels/animeshd.py index f185938c..ebbf050c 100755 --- a/plugin.video.alfa/channels/animeshd.py +++ b/plugin.video.alfa/channels/animeshd.py @@ -1,190 +1,185 @@ -# -*- coding: utf-8 -*- - -import re -import urllib - -from core import httptools -from core import logger -from core import scrapertools -from core.item import Item - -tgenero = {"Comedia": "https://s7.postimg.org/ne9g9zgwb/comedia.png", - "Drama": "https://s16.postimg.org/94sia332d/drama.png", - "Acción": "https://s3.postimg.org/y6o9puflv/accion.png", - "Aventura": "https://s10.postimg.org/6su40czih/aventura.png", - "Romance": "https://s15.postimg.org/fb5j8cl63/romance.png", - "Ciencia ficción": "https://s9.postimg.org/diu70s7j3/cienciaficcion.png", - "Terror": "https://s7.postimg.org/yi0gij3gb/terror.png", - "Fantasía": "https://s13.postimg.org/65ylohgvb/fantasia.png", - "Misterio": "https://s1.postimg.org/w7fdgf2vj/misterio.png", - "Crimen": "https://s4.postimg.org/6z27zhirx/crimen.png", - "Hentai": "https://s29.postimg.org/aamrngu2f/hentai.png", - "Magia": "https://s9.postimg.org/nhkfzqffj/magia.png", - "Psicológico": "https://s13.postimg.org/m9ghzr86f/psicologico.png", - "Sobrenatural": "https://s9.postimg.org/6hxbvd4ov/sobrenatural.png", - "Torneo": "https://s2.postimg.org/ajoxkk9ih/torneo.png", - "Thriller": "https://s22.postimg.org/5y9g0jsu9/thriller.png", - "Otros": "https://s30.postimg.org/uj5tslenl/otros.png"} - -host = "http://www.animeshd.tv" - -headers = [['User-Agent', 'Mozilla/50.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0'], - ['Referer', host]] - - -def mainlist(item): - logger.info() - itemlist = [] - - itemlist.append(item.clone(title="Ultimas", - action="lista", - thumbnail='https://s22.postimg.org/cb7nmhwv5/ultimas.png', - fanart='https://s22.postimg.org/cb7nmhwv5/ultimas.png', - url=host + '/ultimos' - )) - - itemlist.append(item.clone(title="Todas", - action="lista", - thumbnail='https://s18.postimg.org/fwvaeo6qh/todas.png', - fanart='https://s18.postimg.org/fwvaeo6qh/todas.png', - url=host + '/buscar?t=todos&q=' - )) - - itemlist.append(item.clone(title="Generos", - action="generos", - url=host, - thumbnail='https://s3.postimg.org/5s9jg2wtf/generos.png', - fanart='https://s3.postimg.org/5s9jg2wtf/generos.png' - )) - - itemlist.append(item.clone(title="Buscar", - action="search", - url=host + '/buscar?t=todos&q=', - thumbnail='https://s30.postimg.org/pei7txpa9/buscar.png', - fanart='https://s30.postimg.org/pei7txpa9/buscar.png' - )) - - return itemlist - - -def get_source(url): - logger.info() - data = httptools.downloadpage(url).data - data = re.sub(r'\n|\r|\t| |
|\s{2,}|"|\(|\)', "", data) - return data - - -def lista(item): - logger.info() - - itemlist = [] - - post = '' - if item.extra in ['episodios']: - post = {'tipo': 'episodios', '_token': 'rAqVX74O9HVHFFigST3M9lMa5VL7seIO7fT8PBkl'} - post = urllib.urlencode(post) - data = get_source(item.url) - patron = 'class=anime>
.*?

(.*?)<\/h2><\/a><\/div>' - matches = re.compile(patron, re.DOTALL).findall(data) - - for scrapedthumbnail, scrapedurl, scrapedtitle in matches: - url = scrapedurl - thumbnail = host + scrapedthumbnail - title = scrapedtitle - itemlist.append(item.clone(action='episodios', - title=title, - url=url, - thumbnail=thumbnail, - contentSerieName=title - )) - - # Paginacion - next_page = scrapertools.find_single_match(data, - '
  • .*?<\/span><\/li>
  • .*?<\/a><\/li>') - next_page_url = scrapertools.decodeHtmlentities(next_page) - if next_page_url != "": - itemlist.append(Item(channel=item.channel, - action="lista", - title=">> Página siguiente", - url=next_page_url, - thumbnail='https://s16.postimg.org/9okdu7hhx/siguiente.png' - )) - - return itemlist - - -def search(item, texto): - logger.info() - texto = texto.replace(" ", "+") - item.url = item.url + texto - try: - if texto != '': - return lista(item) - else: - return [] - except: - import sys - for line in sys.exc_info(): - logger.error("%s" % line) - return [] - - -def generos(item): - logger.info() - itemlist = [] - - data = get_source(item.url) - patron = '
  • (.*?)<\/a><\/li>' - matches = re.compile(patron, re.DOTALL).findall(data) - - for scrapedurl, scrapedtitle in matches: - title = scrapertools.decodeHtmlentities(scrapedtitle) - if title == 'Recuentos de la vida': - title = 'Otros' - genero = scrapertools.decodeHtmlentities(scrapedurl) - thumbnail = '' - if title in tgenero: - thumbnail = tgenero[title] - - url = 'http://www.animeshd.tv/genero/%s' % genero - itemlist.append(item.clone(action='lista', title=title, url=url, thumbnail=thumbnail)) - return itemlist - - -def episodios(item): - logger.info() - itemlist = [] - - data = get_source(item.url) - patron = '
  • <\/span>(.*?)<\/li>' - matches = re.compile(patron, re.DOTALL).findall(data) - - for scrapedurl, scrapedlang, scrapedtitle in matches: - language = scrapedlang - title = scrapedtitle + ' (%s)' % language - url = scrapedurl - itemlist.append(item.clone(title=title, url=url, action='findvideos', language=language)) - return itemlist - - -def findvideos(item): - logger.info() - itemlist = [] - - data = get_source(item.url) - patron = '|\s{2,}|"|\(|\)', "", data) + return data + + +def lista(item): + logger.info() + + itemlist = [] + + post = '' + if item.extra in ['episodios']: + post = {'tipo': 'episodios', '_token': 'rAqVX74O9HVHFFigST3M9lMa5VL7seIO7fT8PBkl'} + post = urllib.urlencode(post) + data = get_source(item.url) + patron = 'class=anime>
    .*?

    (.*?)<\/h2><\/a><\/div>' + matches = re.compile(patron, re.DOTALL).findall(data) + + for scrapedthumbnail, scrapedurl, scrapedtitle in matches: + url = scrapedurl + thumbnail = host + scrapedthumbnail + title = scrapedtitle + itemlist.append(item.clone(action='episodios', + title=title, + url=url, + thumbnail=thumbnail, + contentSerieName=title + )) + + # Paginacion + next_page = scrapertools.find_single_match(data, + '
  • .*?<\/span><\/li>
  • .*?<\/a><\/li>') + next_page_url = scrapertools.decodeHtmlentities(next_page) + if next_page_url != "": + itemlist.append(Item(channel=item.channel, + action="lista", + title=">> Página siguiente", + url=next_page_url, + thumbnail='https://s16.postimg.org/9okdu7hhx/siguiente.png' + )) + + return itemlist + + +def search(item, texto): + logger.info() + texto = texto.replace(" ", "+") + item.url = item.url + texto + try: + if texto != '': + return lista(item) + else: + return [] + except: + import sys + for line in sys.exc_info(): + logger.error("%s" % line) + return [] + + +def generos(item): + logger.info() + itemlist = [] + + data = get_source(item.url) + patron = '
  • (.*?)<\/a><\/li>' + matches = re.compile(patron, re.DOTALL).findall(data) + + for scrapedurl, scrapedtitle in matches: + title = scrapertools.decodeHtmlentities(scrapedtitle) + if title == 'Recuentos de la vida': + title = 'Otros' + genero = scrapertools.decodeHtmlentities(scrapedurl) + thumbnail = '' + if title in tgenero: + thumbnail = tgenero[title] + + url = 'http://www.animeshd.tv/genero/%s' % genero + itemlist.append(item.clone(action='lista', title=title, url=url, thumbnail=thumbnail)) + return itemlist + + +def episodios(item): + logger.info() + itemlist = [] + + data = get_source(item.url) + patron = '
  • <\/span>(.*?)<\/li>' + matches = re.compile(patron, re.DOTALL).findall(data) + + for scrapedurl, scrapedlang, scrapedtitle in matches: + language = scrapedlang + title = scrapedtitle + ' (%s)' % language + url = scrapedurl + itemlist.append(item.clone(title=title, url=url, action='findvideos', language=language)) + return itemlist + + +def findvideos(item): + logger.info() + itemlist = [] + + data = get_source(item.url) + itemlist.extend(servertools.find_video_items(data=data)) + + for videoitem in itemlist: + title = item.title+' (%s)'%videoitem.server + videoitem.channel = item.channel + videoitem.title = title + videoitem.action = 'play' + + + return itemlist diff --git a/plugin.video.alfa/channels/pelisdanko.json b/plugin.video.alfa/channels/pelisdanko.json deleted file mode 100755 index 9da90562..00000000 --- a/plugin.video.alfa/channels/pelisdanko.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "id": "pelisdanko", - "name": "PelisDanko", - "language": "es", - "active": true, - "adult": false, - "version": 1, - "changes": [ - { - "date": "15/03/2017", - "description": "limpieza código" - }, - { - "date": "08/07/2016", - "description": "Correcciones y adaptacion a la nueva version." - } - ], - "thumbnail": "pelisdanko.png", - "banner": "pelisdanko.png", - "categories": [ - "movie", - "latino", - "vos" - ], - "settings": [ - { - "id": "include_in_global_search", - "type": "bool", - "label": "Incluir en búsqueda global", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "include_in_newest_peliculas", - "type": "bool", - "label": "Incluir en Novedades - Películas", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "modo_grafico", - "type": "bool", - "label": "Buscar información extra", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "filterlanguages", - "type": "list", - "label": "Mostrar enlaces en idioma...", - "default": 3, - "enabled": true, - "visible": true, - "lvalues": [ - "VOSE", - "Latino", - "Español", - "No filtrar" - ] - }, - { - "id": "filterlinks", - "type": "list", - "label": "Mostrar enlaces de tipo...", - "default": 2, - "enabled": true, - "visible": true, - "lvalues": [ - "Solo Descarga", - "Solo Online", - "No filtrar" - ] - } - ] -} \ No newline at end of file diff --git a/plugin.video.alfa/channels/pelisdanko.py b/plugin.video.alfa/channels/pelisdanko.py deleted file mode 100755 index 8b1a6246..00000000 --- a/plugin.video.alfa/channels/pelisdanko.py +++ /dev/null @@ -1,308 +0,0 @@ -# -*- coding: utf-8 -*- - -import re - -from core import config -from core import logger -from core import scrapertools -from core.item import Item - -__modo_grafico__ = config.get_setting('modo_grafico', 'pelisdanko') - -host = "http://pelisdanko.com" -art = "http://pelisdanko.com/img/background.jpg" - - -def mainlist(item): - logger.info() - - itemlist = [] - itemlist.append(item.clone(action="novedades", title="Novedades", url=host + "/novedades", - fanart=art)) - itemlist.append(item.clone(action="novedades", title="Estrenos", url=host + "/estrenos", - fanart=art)) - itemlist.append(item.clone(action="novedades", title="Populares", url=host + "/populares", - fanart=art)) - itemlist.append(item.clone(action="actualizadas", title="Películas actualizadas", url=host, - fanart=art)) - itemlist.append(item.clone(action="indices", title="Índices", fanart=art)) - itemlist.append(item.clone(title="", action="")) - itemlist.append(item.clone(action="search", title="Buscar...", fanart=art)) - - itemlist.append(item.clone(action="configuracion", title="Configurar canal...", fanart=art, - text_color="gold", folder=False)) - - return itemlist - - -def configuracion(item): - from platformcode import platformtools - ret = platformtools.show_channel_settings() - platformtools.itemlist_refresh() - return ret - - -def search(item, texto): - logger.info() - texto = texto.replace(" ", "+") - item.url = "http://pelisdanko.com/busqueda?terms=%s" % texto - try: - return novedades(item) - # Se captura la excepción, para no interrumpir al buscador global si un canal falla - except: - import sys - for line in sys.exc_info(): - logger.error("%s" % line) - return [] - - -def newest(categoria): - logger.info() - itemlist = [] - item = Item() - try: - if categoria == 'peliculas': - item.url = "http://pelisdanko.com/novedades" - itemlist = novedades(item) - - if itemlist[-1].action == "novedades": - itemlist.pop() - - # Se captura la excepción, para no interrumpir al canal novedades si un canal falla - except: - import sys - for line in sys.exc_info(): - logger.error("{0}".format(line)) - return [] - - return itemlist - - -def novedades(item): - logger.info() - itemlist = [] - - # Descarga la pagina - data = scrapertools.downloadpage(item.url) - bloque = scrapertools.find_multiple_matches(data, '
    ') - - for match in bloque: - calidades = scrapertools.find_multiple_matches(match, '