[SeriesDanko] Añadir filtrado por tipo, añadir en novedades, recuperar filtertools
This commit is contained in:
@@ -15,7 +15,15 @@
|
|||||||
"id": "include_in_global_search",
|
"id": "include_in_global_search",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"label": "Incluir en busqueda global",
|
"label": "Incluir en busqueda global",
|
||||||
"default": false,
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_series",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Episodios de series",
|
||||||
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
@@ -33,6 +41,19 @@
|
|||||||
"VO",
|
"VO",
|
||||||
"VOS"
|
"VOS"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "filterlinks",
|
||||||
|
"type": "list",
|
||||||
|
"label": "Mostrar enlaces de tipo...",
|
||||||
|
"default": 2,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true,
|
||||||
|
"lvalues": [
|
||||||
|
"Solo Descarga",
|
||||||
|
"Solo Online",
|
||||||
|
"No filtrar"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -33,12 +33,20 @@ def mainlist(item):
|
|||||||
itemlist.append(Item(channel=item.channel, title="Buscar...", action="search",
|
itemlist.append(Item(channel=item.channel, title="Buscar...", action="search",
|
||||||
url=urlparse.urljoin(HOST, "all.php")))
|
url=urlparse.urljoin(HOST, "all.php")))
|
||||||
|
|
||||||
#itemlist = filtertools.show_option(itemlist, item.channel, list_idiomas, CALIDADES)
|
itemlist = filtertools.show_option(itemlist, item.channel, list_idiomas, CALIDADES)
|
||||||
|
|
||||||
autoplay.show_option(item.channel, itemlist)
|
autoplay.show_option(item.channel, itemlist)
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info("categoria: %s" % categoria)
|
||||||
|
itemlist = []
|
||||||
|
|
||||||
|
if categoria == 'series':
|
||||||
|
itemlist = novedades(Item(channel="seriesdanko", title="Novedades", action="novedades", url=HOST))
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
def novedades(item):
|
def novedades(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
@@ -220,7 +228,7 @@ def episodios(item):
|
|||||||
infoLabels=infoLabels))
|
infoLabels=infoLabels))
|
||||||
|
|
||||||
|
|
||||||
#itemlist = filtertools.get_links(itemlist, item, list_idiomas, CALIDADES)
|
itemlist = filtertools.get_links(itemlist, item, list_idiomas, CALIDADES)
|
||||||
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
||||||
|
|
||||||
# Opción "Añadir esta serie a la videoteca de XBMC"
|
# Opción "Añadir esta serie a la videoteca de XBMC"
|
||||||
@@ -241,14 +249,24 @@ def findvideos(item):
|
|||||||
online = re.findall('<table class=.+? cellpadding=.+? cellspacing=.+?>(.+?)</table>', data,
|
online = re.findall('<table class=.+? cellpadding=.+? cellspacing=.+?>(.+?)</table>', data,
|
||||||
re.MULTILINE | re.DOTALL)
|
re.MULTILINE | re.DOTALL)
|
||||||
|
|
||||||
itemlist = parse_videos(item, "Ver", online[0])
|
itemlist = []
|
||||||
itemlist.extend(parse_videos(item, "Descargar", online[1]))
|
|
||||||
|
try:
|
||||||
|
filtro_enlaces = config.get_setting("filterlinks", item.channel)
|
||||||
|
except:
|
||||||
|
filtro_enlaces = 2
|
||||||
|
|
||||||
|
|
||||||
|
if filtro_enlaces != 0:
|
||||||
|
itemlist.extend(parse_videos(item, "Ver", online[0]))
|
||||||
|
|
||||||
|
if filtro_enlaces != 1:
|
||||||
|
itemlist.extend(parse_videos(item, "Descargar", online[1]))
|
||||||
|
|
||||||
itemlist = filtertools.get_links(itemlist, item, list_idiomas, CALIDADES)
|
|
||||||
|
|
||||||
# Requerido para FilterTools
|
# Requerido para FilterTools
|
||||||
|
|
||||||
itemlist = filtertools.get_links(itemlist, item, list_idiomas)
|
itemlist = filtertools.get_links(itemlist, item, list_idiomas, CALIDADES)
|
||||||
|
|
||||||
# Requerido para AutoPlay
|
# Requerido para AutoPlay
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user