diff options
author | Adam Tauber <asciimoo@gmail.com> | 2021-03-25 01:20:41 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2021-03-25 01:20:41 +0100 |
commit | 0ba71c3644c4d20f70528c10eed1385399ec1c82 (patch) | |
tree | 23d960d4ed481cfab56134be271f769f8c27eb2a | |
parent | 6255b33c9dcf0d28f0a3307af988565f69259ce2 (diff) | |
download | searxng-0ba71c3644c4d20f70528c10eed1385399ec1c82.tar.gz searxng-0ba71c3644c4d20f70528c10eed1385399ec1c82.zip |
[fix] make ina engine compatible with the new response json
-rw-r--r-- | searx/engines/ina.py | 4 |
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): |