[fix] make ina engine compatible with the new response json
commit0ba71c3644c4d20f70528c10eed1385399ec1c82
authorAdam Tauber <asciimoo@gmail.com>
dateThu 25 Mar 2021, 01:20 (6 years ago)
parent6255b33
searx/engines/ina.py+1−3
@@ -53,9 +53,7 @@ def response(resp):
5353
5454 # we get html in a JSON container...
5555 response = loads(resp.text)
56− if "content" not in response:
57− return []
58− dom = html.fromstring(response["content"])
56+ dom = html.fromstring(response)
5957
6058 # parse results
6159 for result in dom.xpath(results_xpath):