update peliculasaudiolatino.py
Ahora muestra nombre de servidor, adaptado para la videoteca, testeado y funcionando al 100, gracias a el creador de este canal (que la verdad no se quien fue), al ultimo que lo actualizo y reparo (no se si fue intel1, inter95 o si alguien mas) y por supuesto a dan83 por ayudarme en el codigo.
This commit is contained in:
@@ -7,7 +7,7 @@ from core import httptools
|
||||
from core import scrapertools
|
||||
from core import servertools
|
||||
from core.item import Item
|
||||
from platformcode import logger
|
||||
from platformcode import logger, config
|
||||
|
||||
HOST = 'http://peliculasaudiolatino.com'
|
||||
|
||||
@@ -154,9 +154,20 @@ def findvideos(item):
|
||||
for servidor, idioma, calidad, scrapedurl in matches:
|
||||
url = scrapedurl
|
||||
server = servertools.get_server_name(servidor)
|
||||
title = item.title
|
||||
title = "Enlace encontrado en %s" % (server)
|
||||
itemlist.append(Item(channel=item.channel, action="play", title=title, fulltitle=item.fulltitle, url=url,
|
||||
thumbnail=scrapedthumbnail, language=idioma, quality=calidad, server=server))
|
||||
if itemlist:
|
||||
itemlist.append(Item(channel = item.channel))
|
||||
itemlist.append(item.clone(channel="trailertools", title="Buscar Tráiler", action="buscartrailer", context="",
|
||||
text_color="magenta"))
|
||||
# Opción "Añadir esta película a la biblioteca de KODI"
|
||||
if item.extra != "library":
|
||||
if config.get_videolibrary_support():
|
||||
itemlist.append(Item(channel=item.channel, title="Añadir pelicula a la videoteca", text_color="green",
|
||||
filtro=True, action="add_pelicula_to_library", url=item.url, thumbnail = item.thumbnail,
|
||||
infoLabels={'title': item.fulltitle}, fulltitle=item.fulltitle,
|
||||
extra="library"))
|
||||
return itemlist
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user