Agregado 4k
This commit is contained in:
@@ -39,6 +39,22 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": 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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -158,9 +158,13 @@ def newest(categoria):
|
|||||||
itemlist = []
|
itemlist = []
|
||||||
item = Item()
|
item = Item()
|
||||||
try:
|
try:
|
||||||
if categoria in ['peliculas']:
|
if categoria in ['torrent', 'peliculas']:
|
||||||
item.url = host+'torrents'
|
item.url = host+'torrents'
|
||||||
|
elif categoria == '4k':
|
||||||
|
item.url = 'http://www.todo-peliculas.com/tags/4k'
|
||||||
|
item.type='section'
|
||||||
itemlist = list_all(item)
|
itemlist = list_all(item)
|
||||||
|
|
||||||
if itemlist[-1].title == 'Siguiente >>':
|
if itemlist[-1].title == 'Siguiente >>':
|
||||||
itemlist.pop()
|
itemlist.pop()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user