From e88cf0a0a877458e2babc8af43c5a77654036af6 Mon Sep 17 00:00:00 2001 From: Dalf Date: Sun, 5 Jan 2014 13:50:17 +0100 Subject: [PATCH] [mod] minor fixes (duckduck_definitions : if a ddg bang is in the query, avoid a useless redirect) --- searx/engines/duckduckgo_definitions.py | 2 +- searx/engines/flickr.py | 0 searx/engines/google_images.py | 0 3 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 searx/engines/flickr.py mode change 100755 => 100644 searx/engines/google_images.py 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 old mode 100755 new mode 100644 diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py old mode 100755 new mode 100644