You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/searx
Marc Abonce Seguin 9b6ffed061 fix fetch_languages for bing
Bing has a list of regions that it supports and some of these regions
may have more than one possible language.

In some cases, like Switzerland, these languages are always shown as
options, so there is no issue. But in other cases, like Andorra, Bing
will only show one language at the time, either the region's default or
the request's language if the latter is supported by that region.

For example, if the HTTP request is in French, Andorra will appear as
fr-AD but if the same page is requested in any other language Andorra
will appear as ca-AD.

This is specially a problem when Bing assumes that the request is in
English because it overrides enough language codes to make several major
languages like Arabic dissappear from the languages.py file.

To avoid that issue, I set the Accept-Language header to a language
that's only supported in one region to hopefully avoid these overrides.
4 years ago
..
answerers Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes 4 years ago
data [mod] add utils/fetch_external_bangs.py 4 years ago
engines fix fetch_languages for bing 4 years ago
metrology [fix] checker: fix engine statistics 4 years ago
plugins [mod] pylint: numerous minor code fixes 4 years ago
search [mod] update currencies.json and fetch_currencies.py 4 years ago
shared [fix] checker: don't run the checker when uwsgi is not properly configured 4 years ago
static [mod] themes: remove legacy, courgette and pix-art themes 4 years ago
templates Merge pull request #2458 from MarcAbonce/hide-links-mobile2 4 years ago
translations [enh] update translations 4 years ago
__init__.py [mod] settings.yml: move brand settings to a dedicated section 4 years ago
autocomplete.py [fix] dbpedia autocomplete (and use HTTPS) 4 years ago
exceptions.py [enh] add raise_for_httperror 4 years ago
external_bang.py [mod] add utils/fetch_external_bangs.py 4 years ago
external_urls.py [mod] add external_urls.json and wikidata_units.json 4 years ago
languages.py [data] make engines.languages 4 years ago
poolrequests.py [mod] poolrequests: for one (user request, engine) always use the same HTTPAdapter 4 years ago
preferences.py Patch advanced search preferences 4 years ago
query.py fix empty colon in query from selecting Chinese 4 years ago
raise_for_httperror.py [enh] add raise_for_httperror 4 years ago
results.py [mod] results: don't crash when an engine don't have a category 4 years ago
settings.yml Added rumble.com video search engine. TODO video embedding. 4 years ago
settings_loader.py [fix] pylint: use "raise ... from ..." 4 years ago
settings_robot.yml Let admins lock user preferences 4 years ago
testing.py Drop Python 2 (1/n): remove unicode string and url_utils 4 years ago
utils.py [fix] pylint: use "raise ... from ..." 4 years ago
version.py prepare release 0.18.0 4 years ago
webadapter.py [fix] pylint: use "raise ... from ..." 4 years ago
webapp.py [fix] get correct locale with country from browser 4 years ago
webutils.py Updated webutils.highlight_content to ignore double-quotes when highlighting query parts 4 years ago