|
@@ -19,11 +19,19 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
19
|
19
|
from lxml import etree
|
20
|
20
|
from json import loads
|
21
|
21
|
from urllib import urlencode
|
|
22
|
+from searx import settings
|
22
|
23
|
from searx.languages import language_codes
|
23
|
24
|
from searx.engines import (
|
24
|
25
|
categories, engines, engine_shortcuts
|
25
|
26
|
)
|
26
|
|
-from searx.poolrequests import get
|
|
27
|
+from searx.poolrequests import get as http_get
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+def get(*args, **kwargs):
|
|
31
|
+ if not 'timeout' in kwargs:
|
|
32
|
+ kwargs['timeout'] = settings['server']['request_timeout']
|
|
33
|
+
|
|
34
|
+ return http_get(*args, **kwargs)
|
27
|
35
|
|
28
|
36
|
|
29
|
37
|
def searx_bang(full_query):
|