From 0ba71c3644c4d20f70528c10eed1385399ec1c82 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Thu, 25 Mar 2021 01:20:41 +0100 Subject: [PATCH] [fix] make ina engine compatible with the new response json --- searx/engines/ina.py | 4 +--- 1 file changed, 1 insertion(+), 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):