forked from zaclys/searxng
New feature : language per search engine !
This commit is contained in:
parent
aac8d3a7bf
commit
00668dd0a1
|
@ -472,7 +472,12 @@ class Search(object):
|
||||||
request_params['category'] = selected_engine['category']
|
request_params['category'] = selected_engine['category']
|
||||||
request_params['started'] = time()
|
request_params['started'] = time()
|
||||||
request_params['pageno'] = self.pageno
|
request_params['pageno'] = self.pageno
|
||||||
|
|
||||||
|
if hasattr(engine, 'language'):
|
||||||
|
request_params['language'] = engine.language
|
||||||
|
else:
|
||||||
request_params['language'] = self.lang
|
request_params['language'] = self.lang
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# 0 = None, 1 = Moderate, 2 = Strict
|
# 0 = None, 1 = Moderate, 2 = Strict
|
||||||
request_params['safesearch'] = int(request.cookies.get('safesearch', 1))
|
request_params['safesearch'] = int(request.cookies.get('safesearch', 1))
|
||||||
|
|
Loading…
Reference in New Issue