Browse Source

[fix] make ina engine compatible with the new response json

Adam Tauber 4 years ago
parent
commit
0ba71c3644
1 changed files with 1 additions and 3 deletions
  1. 1 3
      searx/engines/ina.py

+ 1 - 3
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):