diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-08-01 17:59:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-01 17:59:49 +0200 |
| commit | 7c9c112484ff091a7c11df1dbb645616b57d662f (patch) | |
| tree | 844dc7ca4d31f0ff97c07d1817dbfba591420b30 /searx/search/processors/abstract.py | |
| parent | 1fbb514a4ead209c95b4ddca0430f754a4c11554 (diff) | |
| parent | 8df1f0c47e03fe7525c40a2856dba950bab8998b (diff) | |
Merge pull request #1560 from return42/http-accept-language
[mod] add 'Accept-Language' HTTP header to online processores
Diffstat (limited to 'searx/search/processors/abstract.py')
| -rw-r--r-- | searx/search/processors/abstract.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/searx/search/processors/abstract.py b/searx/search/processors/abstract.py index d4822fc56..d74616db0 100644 --- a/searx/search/processors/abstract.py +++ b/searx/search/processors/abstract.py @@ -138,6 +138,13 @@ class EngineProcessor(ABC): return False def get_params(self, search_query, engine_category): + """Returns a set of *request params* or ``None`` if request is not supported. + + Not supported conditions (``None`` is returned): + + - A page-number > 1 when engine does not support paging. + - A time range when the engine does not support time range. + """ # if paging is not supported, skip if search_query.pageno > 1 and not self.engine.paging: return None |