From 033ea4181a32d5b17ba5aa85061d48f1e5f84973 Mon Sep 17 00:00:00 2001 From: Intel1 Date: Mon, 31 Jul 2017 12:07:53 -0500 Subject: [PATCH 1/8] downace: nuevo servidor Nuevo servidor --- plugin.video.alfa/servers/downace.json | 49 ++++++++++++++++++++++++++ plugin.video.alfa/servers/downace.py | 24 +++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 plugin.video.alfa/servers/downace.json create mode 100644 plugin.video.alfa/servers/downace.py diff --git a/plugin.video.alfa/servers/downace.json b/plugin.video.alfa/servers/downace.json new file mode 100644 index 00000000..64142fce --- /dev/null +++ b/plugin.video.alfa/servers/downace.json @@ -0,0 +1,49 @@ +{ + "active": true, + "changes": [ + { + "date": "12/07/2017", + "description": "Versión inicial" + } + ], + "find_videos": { + "ignore_urls": [], + "patterns": [ + { + "pattern": "downace.com/embed/(.*?)", + "url": "https://downace.com/embed/\\1" + } + ] + }, + "free": true, + "id": "downace", + "name": "downace", + "settings": [ + { + "default": false, + "enabled": true, + "id": "black_list", + "label": "Incluir en lista negra", + "type": "bool", + "visible": true + }, + { + "default": 0, + "enabled": true, + "id": "favorites_servers_list", + "label": "Incluir en lista de favoritos", + "lvalues": [ + "No", + "1", + "2", + "3", + "4", + "5" + ], + "type": "list", + "visible": false + } + ], + "thumbnail": "https://s12.postimg.org/4n9fmdy7x/logo-downace.png", + "version": 1 +} \ No newline at end of file diff --git a/plugin.video.alfa/servers/downace.py b/plugin.video.alfa/servers/downace.py new file mode 100644 index 00000000..6ae1446b --- /dev/null +++ b/plugin.video.alfa/servers/downace.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +from core import httptools +from core import logger +from core import scrapertools + + +def test_video_exists(page_url): + logger.info("(page_url='%s')" % page_url) + data = httptools.downloadpage(page_url).data + if "no longer exists" in data: + return False, "[Downace] El fichero ha sido borrado" + + return True, "" + + +def get_video_url(page_url, user="", password="", video_password=""): + logger.info("(page_url='%s')" % page_url) + data = httptools.downloadpage(page_url).data + video_urls = [] + videourl = scrapertools.find_single_match(data, 'controls preload.*?src="([^"]+)') + video_urls.append([".MP4 [downace]", videourl]) + + return video_urls From 830191141543e6957de96183c37dec241f93635a Mon Sep 17 00:00:00 2001 From: Intel1 Date: Mon, 31 Jul 2017 12:11:27 -0500 Subject: [PATCH 2/8] Update allcalidad.py --- plugin.video.alfa/channels/allcalidad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.video.alfa/channels/allcalidad.py b/plugin.video.alfa/channels/allcalidad.py index 9d92167f..fa8ca804 100755 --- a/plugin.video.alfa/channels/allcalidad.py +++ b/plugin.video.alfa/channels/allcalidad.py @@ -142,7 +142,7 @@ def findvideos(item): # Opción "Añadir esta película a la biblioteca de XBMC" if item.extra != "library": if config.get_videolibrary_support(): - itemlist.append(Item(channel=item.channel, title="Añadir a la biblioteca", text_color="green", + itemlist.append(Item(channel=item.channel, title="Añadir a la videoteca", text_color="green", filtro=True, action="add_pelicula_to_library", url=item.url, thumbnail = item.thumbnail, infoLabels={'title': item.fulltitle}, fulltitle=item.fulltitle, extra="library")) From 8d5648701043088e8ba3e64c464e4ed47d057bb9 Mon Sep 17 00:00:00 2001 From: Intel1 Date: Mon, 31 Jul 2017 12:25:20 -0500 Subject: [PATCH 3/8] vernovelasonline: nuevo canal Nuevo canal --- .../channels/vernovelasonline.json | 30 +++ .../channels/vernovelasonline.py | 216 ++++++++++++++++++ 2 files changed, 246 insertions(+) create mode 100644 plugin.video.alfa/channels/vernovelasonline.json create mode 100644 plugin.video.alfa/channels/vernovelasonline.py diff --git a/plugin.video.alfa/channels/vernovelasonline.json b/plugin.video.alfa/channels/vernovelasonline.json new file mode 100644 index 00000000..397251ac --- /dev/null +++ b/plugin.video.alfa/channels/vernovelasonline.json @@ -0,0 +1,30 @@ +{ + "id": "vernovelasonline", + "name": "Ver Novelas Online", + "active": true, + "adult": false, + "language": "es", + "thumbnail": "https://s16.postimg.org/g4lzydrmd/vernovelasonline1.png", + "bannermenu": "https://s16.postimg.org/w44nhxno5/vernovelasonline2.png", + "version": 1, + "changes": [ + { + "date": "28/06/2017", + "description": "Primera version" + } + ], + "categories": [ + "serie", + "latino" + ], + "settings": [ + { + "id": "include_in_global_search", + "type": "bool", + "label": "Incluir en busqueda global", + "default": true, + "enabled": true, + "visible": true + } + ] +} \ No newline at end of file diff --git a/plugin.video.alfa/channels/vernovelasonline.py b/plugin.video.alfa/channels/vernovelasonline.py new file mode 100644 index 00000000..8797694d --- /dev/null +++ b/plugin.video.alfa/channels/vernovelasonline.py @@ -0,0 +1,216 @@ +# -*- coding: utf-8 -*- + +from core import httptools +from core import logger +from core import scrapertools +from core import servertools +from core.item import Item + +host = "http://ver-novelas-online.com/" + +def mainlist(item): + logger.info() + itemlist = [] + itemlist.append(Item(channel = item.channel, title = "Ultimos capitulos subidos", action = "capitulos_ultimos", url = host)) + itemlist.append(Item(channel = item.channel, title = "Novelas por letra", action = "novelas_letra", url = host + "video/category/letra-" )) + itemlist.append(Item(channel = item.channel, title = "Novelas en emision (Sin caratulas)", action = "novelas_emision", url = host)) + itemlist.append(Item(channel = item.channel, title = "")) + itemlist.append(Item(channel = item.channel, title = "Buscar novela", action = "search", url = host + "?s=")) + return itemlist + +def newest(categoria): + logger.info() + itemlist = [] + item = Item() + try: + item.channel = "vernovelasonline" + item.extra = "newest" + item.url = "http://www.ver-novelas-online.com/" + item.action = "capitulos_ultimos" + itemlist = capitulos_ultimos(item) + # Se captura la excepcion, 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 novelas_emision(item): + logger.info() + itemlist = [] + data = httptools.downloadpage(item.url).data + data = data.replace("\n","") + block = scrapertools.find_single_match(data, '