logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 2be94c2078ccbeb1e69bbd54eec76e10cce00467
parent: ad690fd9192b40a0195049585139e36bd4284ffe
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sat,  8 Mar 2014 13:59:50 +0100

[enh] engine default category init

Diffstat:

Msearx/engines/__init__.py3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py @@ -71,6 +71,9 @@ for engine_data in settings['engines']: if not hasattr(engine, 'paging'): engine.paging = False + if not hasattr(engine, 'categories'): + engine.categories = ['general'] + if not hasattr(engine, 'language_support'): #engine.language_support = False engine.language_support = True