ricerca migliorata per toonitalia e ilgeniodellostreaming

This commit is contained in:
Alhaziel01
2020-11-07 12:04:04 +01:00
parent 711ad239af
commit 630bc93614
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ def search(item, text):
info(text)
itemlist = []
text = text.replace(' ', '+')
item.url = host + "/wp-json/wp/v2/search?search=" + text
item.url = host + "/wp-json/wp/v2/search?per_page=100&search=" + text
results = support.httptools.downloadpage(item.url).json
for r in results:
title = r['title']

View File

@@ -30,7 +30,7 @@ def search(item, texto):
support.info(texto)
item.args='search'
item.contentType='tvshow'
item.url = host + '/wp-json/wp/v2/search?search=' + texto
item.url = host + '/wp-json/wp/v2/search?per_page=100&search=' + texto
try:
return peliculas(item)
# Continua la ricerca in caso di errore