summaryrefslogtreecommitdiff
path: root/searx/engines/__init__.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-01-31 23:11:45 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-01-31 23:11:45 +0100
commitb19e681cce9cef4993b17d3a89d743208f8d5c05 (patch)
treea9ea7c3a44c25bc74ac5cbb1e379545be1902a0b /searx/engines/__init__.py
parentbfd321a7a9cfc6d643fdebe5e7a5824fe70b9aa9 (diff)
downloadsearxng-b19e681cce9cef4993b17d3a89d743208f8d5c05.tar.gz
searxng-b19e681cce9cef4993b17d3a89d743208f8d5c05.zip
[enh] default disabled engines - closes #109
Diffstat (limited to 'searx/engines/__init__.py')
-rw-r--r--searx/engines/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py
index 643b107a5..21a307501 100644
--- a/searx/engines/__init__.py
+++ b/searx/engines/__init__.py
@@ -69,17 +69,17 @@ def load_engine(engine_data):
engine.categories = ['general']
if not hasattr(engine, 'language_support'):
- # engine.language_support = False
engine.language_support = True
if not hasattr(engine, 'timeout'):
- # engine.language_support = False
engine.timeout = settings['server']['request_timeout']
if not hasattr(engine, 'shortcut'):
- # engine.shortcut = '''
engine.shortcut = ''
+ if not hasattr(engine, 'disabled'):
+ engine.disabled = False
+
# checking required variables
for engine_attr in dir(engine):
if engine_attr.startswith('_'):