From 5602f0bf96866efdd73d39e686ef7413bc8caacb Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 5 Mar 2024 19:03:49 +0100 Subject: [PATCH] [fix] engine pinterest - ignore result type 'story' Close: https://github.com/searxng/searxng/issues/3289 Signed-off-by: Markus Heiser --- searx/engines/pinterest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/searx/engines/pinterest.py b/searx/engines/pinterest.py index 4ca316698..756c1b8e0 100644 --- a/searx/engines/pinterest.py +++ b/searx/engines/pinterest.py @@ -48,6 +48,10 @@ def response(resp): ) for result in json_resp['resource_response']['data']['results']: + + if result['type'] == 'story': + continue + results.append( { 'template': 'images.html',