forked from Icycoide/searxng
[enh] default disabled engines - closes #109
This commit is contained in:
parent
bfd321a7a9
commit
b19e681cce
5 changed files with 23 additions and 16 deletions
|
@ -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('_'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue