Update allcalidad.py
This commit is contained in:
@@ -94,8 +94,9 @@ def peliculas(item):
|
|||||||
idioma = scrapertools.find_single_match(varios, '(?s)Idioma.*?kinopoisk">([^<]+)')
|
idioma = scrapertools.find_single_match(varios, '(?s)Idioma.*?kinopoisk">([^<]+)')
|
||||||
year = scrapertools.find_single_match(varios, 'Año.*?kinopoisk">([^<]+)')
|
year = scrapertools.find_single_match(varios, 'Año.*?kinopoisk">([^<]+)')
|
||||||
year = scrapertools.find_single_match(year, '[0-9]{4}')
|
year = scrapertools.find_single_match(year, '[0-9]{4}')
|
||||||
mtitulo = titulo + " (" + idioma + ") (" + year + ")"
|
mtitulo = titulo + " (" + idioma + ")"
|
||||||
if year:
|
if year:
|
||||||
|
mtitulo += " (" + year + ")"
|
||||||
item.infoLabels['year'] = int(year)
|
item.infoLabels['year'] = int(year)
|
||||||
itemlist.append(item.clone(channel = item.channel,
|
itemlist.append(item.clone(channel = item.channel,
|
||||||
action = "findvideos",
|
action = "findvideos",
|
||||||
@@ -107,9 +108,8 @@ def peliculas(item):
|
|||||||
contentType="movie",
|
contentType="movie",
|
||||||
language = idioma
|
language = idioma
|
||||||
))
|
))
|
||||||
tmdb.set_infoLabels(itemlist, True)
|
|
||||||
url_pagina = scrapertools.find_single_match(data, 'next" href="([^"]+)')
|
|
||||||
tmdb.set_infoLabels_itemlist(itemlist, __modo_grafico__)
|
tmdb.set_infoLabels_itemlist(itemlist, __modo_grafico__)
|
||||||
|
url_pagina = scrapertools.find_single_match(data, 'next" href="([^"]+)')
|
||||||
if url_pagina != "":
|
if url_pagina != "":
|
||||||
pagina = "Pagina: " + scrapertools.find_single_match(url_pagina, "page/([0-9]+)")
|
pagina = "Pagina: " + scrapertools.find_single_match(url_pagina, "page/([0-9]+)")
|
||||||
itemlist.append(Item(channel = item.channel, action = "peliculas", title = pagina, url = url_pagina))
|
itemlist.append(Item(channel = item.channel, action = "peliculas", title = pagina, url = url_pagina))
|
||||||
@@ -138,7 +138,7 @@ def findvideos(item):
|
|||||||
title = titulo,
|
title = titulo,
|
||||||
url = url
|
url = url
|
||||||
))
|
))
|
||||||
tmdb.set_infoLabels(itemlist, True)
|
tmdb.set_infoLabels(itemlist, __modo_grafico__)
|
||||||
itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
|
itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
|
||||||
if itemlist:
|
if itemlist:
|
||||||
itemlist.append(Item(channel = item.channel))
|
itemlist.append(Item(channel = item.channel))
|
||||||
@@ -148,7 +148,8 @@ def findvideos(item):
|
|||||||
if item.extra != "library":
|
if item.extra != "library":
|
||||||
if config.get_videolibrary_support():
|
if config.get_videolibrary_support():
|
||||||
itemlist.append(Item(channel=item.channel, title="Añadir a la videoteca", text_color="green",
|
itemlist.append(Item(channel=item.channel, title="Añadir a la videoteca", text_color="green",
|
||||||
action="add_pelicula_to_library", url=item.url, thumbnail = item.thumbnail
|
action="add_pelicula_to_library", url=item.url, thumbnail = item.thumbnail,
|
||||||
|
fulltitle = item.fulltitle
|
||||||
))
|
))
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user