mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
fix fetch_langauges to be more accurate
Add languages supported by either all default general engines or 10 engines.
This commit is contained in:
parent
b9d4c0523e
commit
d1eae9359f
5 changed files with 154 additions and 150 deletions
|
|
@ -23,7 +23,7 @@ from searx.url_utils import urlencode
|
|||
categories = ['general']
|
||||
paging = True
|
||||
language_support = True
|
||||
supported_languages_url = 'https://duckduckgo.com/d2030.js'
|
||||
supported_languages_url = 'https://duckduckgo.com/util/u172.js'
|
||||
time_range_support = True
|
||||
|
||||
# search-url
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ country_to_hostname = {
|
|||
'RO': 'www.google.ro', # Romania
|
||||
'RU': 'www.google.ru', # Russia
|
||||
'SK': 'www.google.sk', # Slovakia
|
||||
'SL': 'www.google.si', # Slovenia (SL -> si)
|
||||
'SI': 'www.google.si', # Slovenia
|
||||
'SE': 'www.google.se', # Sweden
|
||||
'TH': 'www.google.co.th', # Thailand
|
||||
'TR': 'www.google.com.tr', # Turkey
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue