mirror of
https://github.com/searxng/searxng.git
synced 2025-07-16 09:49:21 +02:00
[fix] bing fetch engine traits - adjusted XPath selectors
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
01e2b3e325
commit
03419078ef
3 changed files with 6 additions and 6 deletions
|
@ -28,7 +28,7 @@ from searx.enginelib.traits import EngineTraitsMap
|
|||
languages_file = Path(searx_dir) / 'sxng_locales.py'
|
||||
languages_file_header = """\
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
'''List of SearXNG's locale codes.
|
||||
'''List of SearXNG's locale codes used for the search language/region.
|
||||
|
||||
.. hint::
|
||||
|
||||
|
@ -101,8 +101,8 @@ def fetch_traits_map():
|
|||
def filter_locales(traits_map: EngineTraitsMap):
|
||||
"""Filter language & region tags by a threshold."""
|
||||
|
||||
min_eng_per_region = 18
|
||||
min_eng_per_lang = 20
|
||||
min_eng_per_region = 22
|
||||
min_eng_per_lang = 24
|
||||
|
||||
_ = {}
|
||||
for eng in traits_map.values():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue