diff options
author | marc <a01200356@itesm.mx> | 2017-07-20 15:47:20 -0500 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2017-12-06 01:20:15 -0600 |
commit | 4d1770398a6af8902e75c0bd885781584d39e796 (patch) | |
tree | 1ad30e59206eca081c93a2ad37928ce059f7d114 /searx/engines/archlinux.py | |
parent | 46fb0d860e35a45658969c4e2ac306a1072bc331 (diff) | |
download | searxng-4d1770398a6af8902e75c0bd885781584d39e796.tar.gz searxng-4d1770398a6af8902e75c0bd885781584d39e796.zip |
remove 'all' option from search languages
Diffstat (limited to 'searx/engines/archlinux.py')
-rw-r--r-- | searx/engines/archlinux.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/archlinux.py b/searx/engines/archlinux.py index cad06f8c6..245bc50b2 100644 --- a/searx/engines/archlinux.py +++ b/searx/engines/archlinux.py @@ -26,7 +26,7 @@ xpath_results = '//ul[@class="mw-search-results"]/li' xpath_link = './/div[@class="mw-search-result-heading"]/a' -# cut 'en' from 'en_US', 'de' from 'de_CH', and so on +# cut 'en' from 'en-US', 'de' from 'de-CH', and so on def locale_to_lang_code(locale): if locale.find('-') >= 0: locale = locale.split('-')[0] @@ -36,7 +36,7 @@ def locale_to_lang_code(locale): # wikis for some languages were moved off from the main site, we need to make # requests to correct URLs to be able to get results in those languages lang_urls = { - 'all': { + 'en': { 'base': 'https://wiki.archlinux.org', 'search': '/index.php?title=Special:Search&offset={offset}&{query}' }, @@ -67,7 +67,7 @@ lang_urls = { def get_lang_urls(language): if language in lang_urls: return lang_urls[language] - return lang_urls['all'] + return lang_urls['en'] # Language names to build search requests for |