[fix] cleanup: rename searx leftovers to SearXNG (#5049)

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2025-07-26 06:22:46 +02:00 committed by GitHub
parent 02cbdf468b
commit 649a8dd577
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 33 additions and 35 deletions

View file

@ -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)