summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2021-03-25 01:20:41 +0100
committerAdam Tauber <asciimoo@gmail.com>2021-03-25 01:20:41 +0100
commit0ba71c3644c4d20f70528c10eed1385399ec1c82 (patch)
tree23d960d4ed481cfab56134be271f769f8c27eb2a /searx
parent6255b33c9dcf0d28f0a3307af988565f69259ce2 (diff)
downloadsearxng-0ba71c3644c4d20f70528c10eed1385399ec1c82.tar.gz
searxng-0ba71c3644c4d20f70528c10eed1385399ec1c82.zip
[fix] make ina engine compatible with the new response json
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/ina.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/ina.py b/searx/engines/ina.py
index 1a47ca51e..efcc03e39 100644
--- a/searx/engines/ina.py
+++ b/searx/engines/ina.py
@@ -53,9 +53,7 @@ def response(resp):
# we get html in a JSON container...
response = loads(resp.text)
- if "content" not in response:
- return []
- dom = html.fromstring(response["content"])
+ dom = html.fromstring(response)
# parse results
for result in dom.xpath(results_xpath):