From 2be94c2078ccbeb1e69bbd54eec76e10cce00467 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 8 Mar 2014 13:59:50 +0100 Subject: [PATCH] [enh] engine default category init --- searx/engines/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 61d38862..72e53742 100644 --- 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