pelisplus: fix

This commit is contained in:
Intel1
2017-11-20 10:23:41 -05:00
committed by GitHub
parent 51c4d7d746
commit f045d2ee7c
+5 -3
View File
@@ -145,7 +145,9 @@ def menuseries(item):
def search(item, texto): def search(item, texto):
logger.info() logger.info()
texto = texto.replace(" ", "+") texto = texto.replace(" ", "+")
item.url = item.url + texto item.url = host + 'busqueda/?s=' + texto
if not item.extra:
item.extra = 'peliculas/'
try: try:
if texto != '': if texto != '':
return lista(item) return lista(item)
@@ -217,7 +219,7 @@ def lista(item):
else: else:
item.extra = item.extra.rstrip('s/') item.extra = item.extra.rstrip('s/')
if item.extra in url: if item.extra in url:
itemlist.append( new_item=(
Item(channel=item.channel, Item(channel=item.channel,
contentType=tipo, contentType=tipo,
action=accion, action=accion,
@@ -237,7 +239,7 @@ def lista(item):
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True) tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
# Encuentra los elementos que no tienen plot y carga las paginas correspondientes para obtenerlo# #Encuentra los elementos que no tienen plot y carga las paginas correspondientes para obtenerlo#
for item in itemlist: for item in itemlist:
if item.infoLabels['plot'] == '': if item.infoLabels['plot'] == '':
data = httptools.downloadpage(item.url).data data = httptools.downloadpage(item.url).data