diff options
| author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-02-14 16:17:46 -0600 |
|---|---|---|
| committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-03-20 17:58:20 -0600 |
| commit | d1eae9359f8c5920632a730744ea2208070f06da (patch) | |
| tree | 05f5be6e7fbc8bb63852d9b5df6e4248ae83f98d /searx/engines | |
| parent | b9d4c0523e8d6eab81658d77f8213b39f9b28f17 (diff) | |
fix fetch_langauges to be more accurate
Add languages supported by either all default general engines or 10 engines.
Diffstat (limited to 'searx/engines')
| -rw-r--r-- | searx/engines/duckduckgo.py | 2 | ||||
| -rw-r--r-- | searx/engines/google.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index e51332618..02ccff8e5 100644 --- a/searx/engines/duckduckgo.py +++ b/searx/engines/duckduckgo.py @@ -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 diff --git a/searx/engines/google.py b/searx/engines/google.py index 0a8678362..99c0d2b45 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -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 |