Agregado 4k

This commit is contained in:
Unknown
2018-03-06 16:48:57 -03:00
parent a7283e498b
commit cbc2180a18
2 changed files with 21 additions and 1 deletions

View File

@@ -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
}
]
}

View File

@@ -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: