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/duckduckgo_images.py | |
parent | 46fb0d860e35a45658969c4e2ac306a1072bc331 (diff) | |
download | searxng-4d1770398a6af8902e75c0bd885781584d39e796.tar.gz searxng-4d1770398a6af8902e75c0bd885781584d39e796.zip |
remove 'all' option from search languages
Diffstat (limited to 'searx/engines/duckduckgo_images.py')
-rw-r--r-- | searx/engines/duckduckgo_images.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/searx/engines/duckduckgo_images.py b/searx/engines/duckduckgo_images.py index dbd78b074..7b0e72694 100644 --- a/searx/engines/duckduckgo_images.py +++ b/searx/engines/duckduckgo_images.py @@ -53,12 +53,8 @@ def request(query, params): safesearch = params['safesearch'] - 1 region_code = get_region_code(params['language'], lang_list=supported_languages) - if region_code: - params['url'] = images_url.format( - query=urlencode({'q': query, 'l': region_code}), offset=offset, safesearch=safesearch, vqd=vqd) - else: - params['url'] = images_url.format( - query=urlencode({'q': query}), offset=offset, safesearch=safesearch, vqd=vqd) + params['url'] = images_url.format( + query=urlencode({'q': query, 'l': region_code}), offset=offset, safesearch=safesearch, vqd=vqd) return params |