diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2026-06-14 15:16:26 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2026-06-15 10:52:00 +0200 |
| commit | 6c9dcd42420cee087ad7fe3d686dfc2b632ebbee (patch) | |
| tree | 27031bc2bbb57a2eb9596bb6d5f588bd9a2db0e3 /searx/engines/photon.py | |
| parent | b3e08f2a44640ffc45d5955f5ff43b4a4d555578 (diff) | |
[chore] complete and normalize the attributes of engine objects (#6258)
Drop outdated engine attributes: supported_languages, language_aliases
Complete, normalize and document the type definitions for the engine-module and
engine-class.
For the ``engine.about`` section of the configuration, a type check is performed
based on structure ``searx.enginelib.EngineAbout``.
The property ``engine.about.language`` no longer exists; existing values have
been migrated to ``engine.language``.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/photon.py')
| -rw-r--r-- | searx/engines/photon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/photon.py b/searx/engines/photon.py index 950e82d68..32dea321b 100644 --- a/searx/engines/photon.py +++ b/searx/engines/photon.py @@ -28,7 +28,7 @@ search_string = 'api/?{query}&limit={limit}' result_base_url = 'https://openstreetmap.org/{osm_type}/{osm_id}' # list of supported languages -supported_languages = ['de', 'en', 'fr', 'it'] +photon_supported_languages = ["de", "en", "fr", "it"] # do search-request @@ -37,7 +37,7 @@ def request(query, params): if params['language'] != 'all': language = params['language'].split('_')[0] - if language in supported_languages: + if language in photon_supported_languages: params['url'] = params['url'] + "&lang=" + language # using SearXNG User-Agent |
