summaryrefslogtreecommitdiff
path: root/searx/engines/tineye.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-30 20:44:30 +0100
committerAlexandre Flament <alex@al-f.net>2022-01-30 20:49:22 +0100
commitebd3013a1aad1bc6def749dea07d6278f399fb69 (patch)
treec82077f57546c913ee697bc9cbfe465669cc8b5a /searx/engines/tineye.py
parenta6b879f19c74cd0c15907ed9d21b9185ccea9d25 (diff)
downloadsearxng-ebd3013a1aad1bc6def749dea07d6278f399fb69.tar.gz
searxng-ebd3013a1aad1bc6def749dea07d6278f399fb69.zip
[mod] tineye engine: minor changes
* remove "disable: false" in settings.yml * use the json() method from httpx.Response (faster character encoding detection)
Diffstat (limited to 'searx/engines/tineye.py')
-rw-r--r--searx/engines/tineye.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/tineye.py b/searx/engines/tineye.py
index 5a8c86062..fe5b60393 100644
--- a/searx/engines/tineye.py
+++ b/searx/engines/tineye.py
@@ -15,7 +15,6 @@ billion images `[tineye.com] <https://tineye.com/how>`_.
"""
-from json import loads
from urllib.parse import urlencode
from datetime import datetime
@@ -64,7 +63,7 @@ def response(resp):
results = []
# Define wanted results
- json_data = loads(resp.text)
+ json_data = resp.json()
number_of_results = json_data['num_matches']
for i in json_data['matches']: