[mod] minor fixes (duckduck_definitions : if a ddg bang is in the query, avoid a useless redirect)

This commit is contained in:
Dalf 2014-01-05 13:50:17 +01:00
parent 75d22cd847
commit e88cf0a0a8
3 changed files with 1 additions and 1 deletions

View File

@ -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}))

0
searx/engines/flickr.py Executable file → Normal file
View File

0
searx/engines/google_images.py Executable file → Normal file
View File