Agregado 4k
This commit is contained in:
@@ -28,6 +28,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_4k",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - 4K",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -96,6 +96,11 @@ def submenu(item):
|
|||||||
item.clone(channel=item.channel, action="alfabeto", title=title + " [A-Z]", url=url,
|
item.clone(channel=item.channel, action="alfabeto", title=title + " [A-Z]", url=url,
|
||||||
thumbnail=item.thumbnail[:-4] + "_az.png", pattern="pelilist"))
|
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
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
@@ -473,14 +478,20 @@ def newest(categoria):
|
|||||||
item.pattern = 'pelilist'
|
item.pattern = 'pelilist'
|
||||||
if categoria == 'torrent':
|
if categoria == 'torrent':
|
||||||
item.url = host+'peliculas/'
|
item.url = host+'peliculas/'
|
||||||
|
action = listado(item)
|
||||||
itemlist = listado(item)
|
elif categoria == 'series':
|
||||||
if itemlist[-1].title == ">> Página siguiente":
|
|
||||||
itemlist.pop()
|
|
||||||
item.url = host+'series/'
|
item.url = host+'series/'
|
||||||
itemlist.extend(listado(item))
|
action = listado(item)
|
||||||
if itemlist[-1].title == ">> Página siguiente":
|
elif categoria == '4k':
|
||||||
itemlist.pop()
|
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
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user