From 32f2da4ef0cef32a2d381f5fee78af6ff81643e9 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 13 Sep 2026 12:46:15 +0200 Subject: [PATCH] [fix] public domain image archive: fails to extract API url --- searx/engines/public_domain_image_archive.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/searx/engines/public_domain_image_archive.py b/searx/engines/public_domain_image_archive.py index 587fa4f1f..193c1587e 100644 --- a/searx/engines/public_domain_image_archive.py +++ b/searx/engines/public_domain_image_archive.py @@ -51,7 +51,7 @@ paging = True __CACHED_API_URL = None -_API_URL_RE = re.compile(r"\"(https://.*?/search-proxy)\"") +_API_URL_RE = re.compile(r"https://.*?/search-proxy") def _clean_url(url): @@ -82,8 +82,7 @@ def _get_algolia_api_url(): if api_url_match is None: raise LookupError("Couldn't obtain AWS api url for PDImageArchive") - api_url = api_url_match.group(1) - + api_url = api_url_match.group(0) __CACHED_API_URL = api_url return api_url