[fix] 360search: improve empty results set management and increase engine timeout (#6058)

This commit is contained in:
Tommaso Colella
2026-05-09 08:35:21 +02:00
committed by GitHub
parent d8ab61a9e0
commit 849e17e431
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -84,6 +84,10 @@ def request(query, params):
def response(resp):
# sometimes 360search returns empty response when called from non-chinese ips
if not resp.text or not resp.text.strip():
return []
dom = html.fromstring(resp.text)
results = []
+1 -1
View File
@@ -302,7 +302,7 @@ engines:
- name: 360search
engine: 360search
shortcut: 360so
timeout: 10.0
timeout: 20.0
disabled: true
- name: 360search videos