summaryrefslogtreecommitdiff
path: root/searxng_extra/update/update_engine_descriptions.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2025-07-26 06:22:46 +0200
committerGitHub <noreply@github.com>2025-07-26 06:22:46 +0200
commit649a8dd577b7db5549a34af6f667daf1b61ffb6b (patch)
treebae5c18a77fa71ccc7e5df4aec9082201d5d6fd8 /searxng_extra/update/update_engine_descriptions.py
parent02cbdf468b316d9c9609d35ec2a9d0916c6def4c (diff)
[fix] cleanup: rename `searx` leftovers to `SearXNG` (#5049)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searxng_extra/update/update_engine_descriptions.py')
-rwxr-xr-xsearxng_extra/update/update_engine_descriptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searxng_extra/update/update_engine_descriptions.py b/searxng_extra/update/update_engine_descriptions.py
index 916e18802..769af128a 100755
--- a/searxng_extra/update/update_engine_descriptions.py
+++ b/searxng_extra/update/update_engine_descriptions.py
@@ -16,7 +16,7 @@ from os.path import join
from lxml.html import fromstring
from searx.engines import wikidata, set_loggers
-from searx.utils import extract_text, searx_useragent
+from searx.utils import extract_text, searxng_useragent
from searx.locales import LOCALE_NAMES, locales_initialize, match_locale
from searx import searx_dir
from searx.utils import gen_useragent, detect_language
@@ -113,7 +113,7 @@ def get_wikipedia_summary(wikipedia_url, searxng_locale):
# get the REST API URL from the HTML URL
# Headers
- headers = {'User-Agent': searx_useragent()}
+ headers = {'User-Agent': searxng_useragent()}
if searxng_locale in WIKIPEDIA_LANGUAGE_VARIANTS:
headers['Accept-Language'] = WIKIPEDIA_LANGUAGE_VARIANTS.get(searxng_locale)