searxng/searx/engines
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.
2021-02-25 23:51:49 -07:00
..
1337x.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
__init__.py fix fetch_languages for bing 2021-02-25 23:51:49 -07:00
acgsou.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
ahmia.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
apkmirror.py [fix) fix apk_mirror engine 2021-02-09 11:02:12 +01:00
archlinux.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
arxiv.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
base.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
bing.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
bing_images.py Fix paging of Bing Images 2021-02-22 21:19:34 +01:00
bing_news.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
bing_videos.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
btdigg.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
ccengine.py Add Creative Commons search engine 2021-02-04 11:31:35 +01:00
command.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
currency_convert.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
dailymotion.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
deezer.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
deviantart.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
dictzone.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
digbt.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
digg.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
doku.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
duckduckgo.py [fix] duckduckgo engine: "!ddg !g" do not redirect to google 2021-02-12 11:10:08 +01:00
duckduckgo_definitions.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
duckduckgo_images.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
duden.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
dummy-offline.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
dummy.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
ebay.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
elasticsearch.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
etools.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
fdroid.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
flickr.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
flickr_noapi.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
framalibre.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
frinkiac.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
genius.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
gentoo.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
gigablast.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
github.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
google.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
google_images.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
google_news.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
google_videos.py [fix] normalize the language & region aspects of all google engines 2021-01-28 10:08:46 +01:00
ina.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
invidious.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
json_engine.py [mod] json_engine: add content_html_to_text and title_html_to_text 2021-02-10 16:42:11 +01:00
kickass.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
loc.py Add Library of Congress engine 2021-02-09 12:45:39 +01:00
mediathekviewweb.py [enh] add engine MediathekViewWeb (API) 2021-02-09 13:08:01 +01:00
mediawiki.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
microsoft_academic.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
mixcloud.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
not_evil.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
nyaa.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
opensemantic.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
openstreetmap.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
pdbe.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
peertube.py Improve peertube searching 2021-02-13 19:47:33 +01:00
photon.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
piratebay.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
pubmed.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
qwant.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
recoll.py [feat] recoll: paged json support 2021-02-07 10:05:35 -03:00
reddit.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
rumble.py Added rumble.com video search engine. TODO video embedding. 2021-02-20 12:48:56 +00:00
scanr_structures.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
searchcode_code.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
searx_engine.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
sepiasearch.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
seznam.py [fix] fix seznam engine 2021-02-11 12:53:19 +01:00
soundcloud.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
spotify.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
stackoverflow.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
startpage.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
tokyotoshokan.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
torrentz.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
translated.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
unsplash.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
vimeo.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
wikidata.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
wikipedia.py [upd] wikipedia engine: return an empty result on query with illegal characters 2021-02-11 12:29:21 +01:00
wolframalpha_api.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
wolframalpha_noapi.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
www1x.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
xpath.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
yacy.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
yahoo.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
yahoo_news.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
yggtorrent.py fix yggtorrent url + add it back 2021-02-15 13:38:34 +01:00
youtube_api.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
youtube_noapi.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00