summaryrefslogtreecommitdiff
path: root/searx/engines/duckduckgo_images.py
diff options
context:
space:
mode:
authormarc <a01200356@itesm.mx>2017-07-04 22:29:06 -0500
committerAdam Tauber <asciimoo@gmail.com>2017-07-10 18:41:50 +0200
commit405e5c8f24d7e9eee45d830e229570f459e25847 (patch)
treed315981cf3861a7a5f6dac9c86e786765a5a8604 /searx/engines/duckduckgo_images.py
parent38d6ba4066a474c1b13e7ccb6f9ea92b43702a4a (diff)
downloadsearxng-405e5c8f24d7e9eee45d830e229570f459e25847.tar.gz
searxng-405e5c8f24d7e9eee45d830e229570f459e25847.zip
[fix] duckduckgo images doesn't fail with countryless language
Diffstat (limited to 'searx/engines/duckduckgo_images.py')
-rw-r--r--searx/engines/duckduckgo_images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/duckduckgo_images.py b/searx/engines/duckduckgo_images.py
index f3555230e..b7b0d8aa4 100644
--- a/searx/engines/duckduckgo_images.py
+++ b/searx/engines/duckduckgo_images.py
@@ -52,7 +52,7 @@ def request(query, params):
safesearch = params['safesearch'] - 1
- region_code = get_region_code(params['language'])
+ 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)