From 1abda590d7ada016324de65a7bbfe0a86b6ae8b2 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 6 Mar 2018 21:40:12 -0300 Subject: [PATCH] Agregado 4k --- plugin.video.alfa/channels/torrentlocura.json | 8 ++++++ plugin.video.alfa/channels/torrentlocura.py | 25 +++++++++++++------ 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/plugin.video.alfa/channels/torrentlocura.json b/plugin.video.alfa/channels/torrentlocura.json index 185a1fb7..adea60a4 100755 --- a/plugin.video.alfa/channels/torrentlocura.json +++ b/plugin.video.alfa/channels/torrentlocura.json @@ -28,6 +28,14 @@ "default": true, "enabled": true, "visible": true + }, + { + "id": "include_in_newest_4k", + "type": "bool", + "label": "Incluir en Novedades - 4K", + "default": true, + "enabled": true, + "visible": true } ] } \ No newline at end of file diff --git a/plugin.video.alfa/channels/torrentlocura.py b/plugin.video.alfa/channels/torrentlocura.py index e83bc956..61601c0e 100755 --- a/plugin.video.alfa/channels/torrentlocura.py +++ b/plugin.video.alfa/channels/torrentlocura.py @@ -96,6 +96,11 @@ def submenu(item): item.clone(channel=item.channel, action="alfabeto", title=title + " [A-Z]", url=url, thumbnail=item.thumbnail[:-4] + "_az.png", pattern="pelilist")) + if 'Películas' in item.title: + new_item = item.clone(title='Peliculas 4K', url=host+'buscar', post='q=4k', action='listado2', + pattern='buscar-list') + itemlist.append(new_item) + return itemlist @@ -473,14 +478,20 @@ def newest(categoria): item.pattern = 'pelilist' if categoria == 'torrent': item.url = host+'peliculas/' - - itemlist = listado(item) - if itemlist[-1].title == ">> Página siguiente": - itemlist.pop() + action = listado(item) + elif categoria == 'series': item.url = host+'series/' - itemlist.extend(listado(item)) - if itemlist[-1].title == ">> Página siguiente": - itemlist.pop() + action = listado(item) + elif categoria == '4k': + item.url = host + 'buscar/' + item.post = 'q=4k' + item.pattern = 'buscar-list' + action = listado2(item) + + itemlist = action + + if itemlist[-1].title == ">> Página siguiente": + itemlist.pop() # Se captura la excepción, para no interrumpir al canal novedades si un canal falla except: