diff --git a/plugin.video.alfa/channels/todopeliculas.json b/plugin.video.alfa/channels/todopeliculas.json index 2e0087a5..b32b7320 100644 --- a/plugin.video.alfa/channels/todopeliculas.json +++ b/plugin.video.alfa/channels/todopeliculas.json @@ -39,6 +39,22 @@ "default": true, "enabled": true, "visible": true + }, + { + "id": "include_in_newest_torrent", + "type": "bool", + "label": "Incluir en Novedades - Torrent", + "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/todopeliculas.py b/plugin.video.alfa/channels/todopeliculas.py index c6d4781c..b8cf488b 100644 --- a/plugin.video.alfa/channels/todopeliculas.py +++ b/plugin.video.alfa/channels/todopeliculas.py @@ -158,9 +158,13 @@ def newest(categoria): itemlist = [] item = Item() try: - if categoria in ['peliculas']: + if categoria in ['torrent', 'peliculas']: item.url = host+'torrents' + elif categoria == '4k': + item.url = 'http://www.todo-peliculas.com/tags/4k' + item.type='section' itemlist = list_all(item) + if itemlist[-1].title == 'Siguiente >>': itemlist.pop() except: