pelisplus: fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user