summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2014-01-05 13:50:17 +0100
committerDalf <alex@al-f.net>2014-01-05 13:50:17 +0100
commite88cf0a0a877458e2babc8af43c5a77654036af6 (patch)
tree1cc59199a81ffdacb77b9171f5eb39e63a0f5d24 /searx
parent75d22cd84759d87f6dff336cdd74f71e4bfcfa83 (diff)
downloadsearxng-e88cf0a0a877458e2babc8af43c5a77654036af6.tar.gz
searxng-e88cf0a0a877458e2babc8af43c5a77654036af6.zip
[mod] minor fixes (duckduck_definitions : if a ddg bang is in the query, avoid a useless redirect)
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/duckduckgo_definitions.py2
-rw-r--r--[-rwxr-xr-x]searx/engines/flickr.py0
-rw-r--r--[-rwxr-xr-x]searx/engines/google_images.py0
3 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/duckduckgo_definitions.py b/searx/engines/duckduckgo_definitions.py
index 2b180d0ff..2d97f8154 100644
--- a/searx/engines/duckduckgo_definitions.py
+++ b/searx/engines/duckduckgo_definitions.py
@@ -1,7 +1,7 @@
import json
from urllib import urlencode
-url = 'http://api.duckduckgo.com/?{query}&format=json&pretty=0'
+url = 'http://api.duckduckgo.com/?{query}&format=json&pretty=0&no_redirect=1'
def request(query, params):
params['url'] = url.format(query=urlencode({'q': query}))
diff --git a/searx/engines/flickr.py b/searx/engines/flickr.py
index a9832856d..a9832856d 100755..100644
--- a/searx/engines/flickr.py
+++ b/searx/engines/flickr.py
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index d828a9c4b..d828a9c4b 100755..100644
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py