summaryrefslogtreecommitdiff
path: root/searx/search/processors/__init__.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-01-31 08:51:35 +0100
committerGitHub <noreply@github.com>2022-01-31 08:51:35 +0100
commit60e7fee47a2a994f5d1bc0850808787577c9e3cb (patch)
tree31521c47abce801fe4a614bfc3ff69af250bf11f /searx/search/processors/__init__.py
parent32c5acb1fbebfca2cdf82809130498a886a5881c (diff)
parentebd3013a1aad1bc6def749dea07d6278f399fb69 (diff)
Merge pull request #475 from return42/tineye
[enh] engine - add Tineye reverse image search
Diffstat (limited to 'searx/search/processors/__init__.py')
-rw-r--r--searx/search/processors/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/searx/search/processors/__init__.py b/searx/search/processors/__init__.py
index 4e85527ba..a270b4ef5 100644
--- a/searx/search/processors/__init__.py
+++ b/searx/search/processors/__init__.py
@@ -11,6 +11,7 @@ __all__ = [
'OnlineProcessor',
'OnlineDictionaryProcessor',
'OnlineCurrencyProcessor',
+ 'OnlineUrlSearchProcessor',
'PROCESSORS',
]
@@ -24,6 +25,7 @@ from .online import OnlineProcessor
from .offline import OfflineProcessor
from .online_dictionary import OnlineDictionaryProcessor
from .online_currency import OnlineCurrencyProcessor
+from .online_url_search import OnlineUrlSearchProcessor
from .abstract import EngineProcessor
logger = logger.getChild('search.processors')
@@ -33,7 +35,13 @@ PROCESSORS: Dict[str, EngineProcessor] = {}
def get_processor_class(engine_type):
"""Return processor class according to the ``engine_type``"""
- for c in [OnlineProcessor, OfflineProcessor, OnlineDictionaryProcessor, OnlineCurrencyProcessor]:
+ for c in [
+ OnlineProcessor,
+ OfflineProcessor,
+ OnlineDictionaryProcessor,
+ OnlineCurrencyProcessor,
+ OnlineUrlSearchProcessor,
+ ]:
if c.engine_type == engine_type:
return c
return None