summaryrefslogtreecommitdiff
path: root/searx/search/processors/abstract.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/search/processors/abstract.py')
-rw-r--r--searx/search/processors/abstract.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/search/processors/abstract.py b/searx/search/processors/abstract.py
index 0cabec97..baa031a0 100644
--- a/searx/search/processors/abstract.py
+++ b/searx/search/processors/abstract.py
@@ -150,6 +150,11 @@ class EngineProcessor(ABC):
if search_query.pageno > 1 and not self.engine.paging:
return None
+ # if max page is reached, skip
+ max_page = self.engine.max_page or settings['search']['max_page']
+ if max_page and max_page < search_query.pageno:
+ return None
+
# if time_range is not supported, skip
if search_query.time_range and not self.engine.time_range_support:
return None