Merge pull request #95 from prpeaprendiz/patch-1
update peliculasaudiolatino adaptado a videoteca y mostrar servidor
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,18 @@ 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",
|
||||
text_color="magenta"))
|
||||
# Opción "Añadir esta película a la biblioteca de KODI"
|
||||
if config.get_videolibrary_support():
|
||||
itemlist.append(Item(channel=item.channel, title="Añadir pelicula a la videoteca", text_color="green",
|
||||
action="add_pelicula_to_library", url=item.url, thumbnail=item.thumbnail,
|
||||
fulltitle=item.fulltitle))
|
||||
return itemlist
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user