ricerca migliorata per toonitalia e ilgeniodellostreaming
This commit is contained in:
@@ -128,7 +128,7 @@ def search(item, text):
|
|||||||
info(text)
|
info(text)
|
||||||
itemlist = []
|
itemlist = []
|
||||||
text = text.replace(' ', '+')
|
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
|
results = support.httptools.downloadpage(item.url).json
|
||||||
for r in results:
|
for r in results:
|
||||||
title = r['title']
|
title = r['title']
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def search(item, texto):
|
|||||||
support.info(texto)
|
support.info(texto)
|
||||||
item.args='search'
|
item.args='search'
|
||||||
item.contentType='tvshow'
|
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:
|
try:
|
||||||
return peliculas(item)
|
return peliculas(item)
|
||||||
# Continua la ricerca in caso di errore
|
# Continua la ricerca in caso di errore
|
||||||
|
|||||||
Reference in New Issue
Block a user