From 96c35f1ed3396a327728c52705ab03624aa0e025 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 18 Sep 2026 11:30:49 +0200 Subject: [PATCH] [fix] findfiles images: crashes due to changed HTML layout --- searx/engines/findfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/engines/findfiles.py b/searx/engines/findfiles.py index a00ce635c..397724aa0 100644 --- a/searx/engines/findfiles.py +++ b/searx/engines/findfiles.py @@ -81,8 +81,8 @@ def response(resp: "SXNG_Response") -> EngineResults: ): res.add( res.types.Image( - url=extract_text(eval_xpath(result, ".//div[contains(@class, 'caption')]/a/@href")) or "", - title=extract_text(eval_xpath(result, ".//div[contains(@class, 'caption')]/a")) or "", + url=extract_text(eval_xpath(result, ".//figcaption/a/@href")) or "", + title=extract_text(eval_xpath(result, ".//figcaption/a")) or "", thumbnail_src=extract_text(eval_xpath(result, ".//img/@src")) or "", ) )