diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-04-27 16:50:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-27 16:50:41 +0200 |
| commit | 87e914e398dc7bfad173ec870d0665a94054e644 (patch) | |
| tree | 510de176eb0a3cd77c5fc78890aa6045c3d054b1 /searx/search/processors/online_dictionary.py | |
| parent | 4afe5a807578389b534f5fca9c4f70c9d388e3e2 (diff) | |
| parent | 924f9afea37b6c545a03505a7ec291cf44654ca7 (diff) | |
Merge pull request #28 from searxng/mod-processors-error-message
[mod] processors: show identical error messages on /search and /stats
Diffstat (limited to 'searx/search/processors/online_dictionary.py')
| -rw-r--r-- | searx/search/processors/online_dictionary.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/searx/search/processors/online_dictionary.py b/searx/search/processors/online_dictionary.py index 987c710a1..11ca0335d 100644 --- a/searx/search/processors/online_dictionary.py +++ b/searx/search/processors/online_dictionary.py @@ -1,15 +1,18 @@ # SPDX-License-Identifier: AGPL-3.0-or-later +# lint: pylint +"""Processores for engine-type: ``online_dictionary`` + +""" import re from searx.utils import is_valid_lang from .online import OnlineProcessor - parser_re = re.compile('.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I) - class OnlineDictionaryProcessor(OnlineProcessor): + """Processor class used by ``online_dictionnary`` engines.""" engine_type = 'online_dictionnary' |