ricerca migliorata per toonitalia e ilgeniodellostreaming
This commit is contained in:
@@ -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']
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user