summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorBrock Vojkovic <github@vojk.au>2024-08-11 08:39:46 +0000
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-10-05 08:18:28 +0200
commite17d7632d0ed8284c218f65604ab5fa5d4b8ff81 (patch)
tree720692ebe4c8087f6c928d28f79bae5040a85605 /searx/preferences.py
parent3e747d0491b23f9431ce6ccc79875233614e165a (diff)
downloadsearxng-e17d7632d0ed8284c218f65604ab5fa5d4b8ff81.tar.gz
searxng-e17d7632d0ed8284c218f65604ab5fa5d4b8ff81.zip
[feat] add favicons to result urls
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index 4b7494ac2..92758efa6 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -13,7 +13,7 @@ from collections import OrderedDict
import flask
import babel
-from searx import settings, autocomplete
+from searx import settings, autocomplete, favicon_resolver
from searx.enginelib import Engine
from searx.plugins import Plugin
from searx.locales import LOCALE_NAMES
@@ -406,6 +406,11 @@ class Preferences:
locked=is_locked('autocomplete'),
choices=list(autocomplete.backends.keys()) + ['']
),
+ 'favicon_resolver': EnumStringSetting(
+ settings['search']['favicon_resolver'],
+ locked=is_locked('favicon_resolver'),
+ choices=list(favicon_resolver.backends.keys()) + ['']
+ ),
'image_proxy': BooleanSetting(
settings['server']['image_proxy'],
locked=is_locked('image_proxy')