summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-25 06:55:12 +0100
committerGitHub <noreply@github.com>2022-01-25 06:55:12 +0100
commit81453a0ebab2b4b041828efc3653576f909d2768 (patch)
tree3208089226381c5c85b095e3ca8e14126037a38e /searx
parent973a2a57a10bd4fe2568c76a802cc5586017fe44 (diff)
parente0b284e427187d42d63c7cfc0761cdd01f509ee9 (diff)
downloadsearxng-81453a0ebab2b4b041828efc3653576f909d2768.tar.gz
searxng-81453a0ebab2b4b041828efc3653576f909d2768.zip
Merge pull request #811 from return42/enh-788
[mod] configuration to overwrite engine description
Diffstat (limited to 'searx')
-rwxr-xr-xsearx/webapp.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 099a42996..7e351bfaa 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -1170,6 +1170,13 @@ def engine_descriptions():
if isinstance(description, str):
description = [description, 'wikipedia']
result[engine] = description
+
+ # overwrite by about:description (from settings)
+ for engine_name, engine_mod in engines.items():
+ descr = getattr(engine_mod, 'about', {}).get('description', None)
+ if descr is not None:
+ result[engine_name] = [descr, "SearXNG config"]
+
return jsonify(result)