mirror of
https://github.com/searxng/searxng.git
synced 2026-10-19 09:54:24 +00:00
[fix] public domain image archive: fails to extract API url
Some checks are pending
Documentation / Release (push) Waiting to run
Integration / Python 3.11 (push) Waiting to run
Integration / Python 3.12 (push) Waiting to run
Integration / Python 3.13 (push) Waiting to run
Integration / Python 3.14 (push) Waiting to run
Integration / Theme (push) Waiting to run
Some checks are pending
Documentation / Release (push) Waiting to run
Integration / Python 3.11 (push) Waiting to run
Integration / Python 3.12 (push) Waiting to run
Integration / Python 3.13 (push) Waiting to run
Integration / Python 3.14 (push) Waiting to run
Integration / Theme (push) Waiting to run
This commit is contained in:
parent
96479fff65
commit
32f2da4ef0
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue