mirror of
https://github.com/searxng/searxng.git
synced 2026-09-13 17:56:05 +00:00
[fix] public domain image archive: fails to extract API url
This commit is contained in:
@@ -51,7 +51,7 @@ paging = True
|
|||||||
|
|
||||||
__CACHED_API_URL = None
|
__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):
|
def _clean_url(url):
|
||||||
@@ -82,8 +82,7 @@ def _get_algolia_api_url():
|
|||||||
if api_url_match is None:
|
if api_url_match is None:
|
||||||
raise LookupError("Couldn't obtain AWS api url for PDImageArchive")
|
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
|
__CACHED_API_URL = api_url
|
||||||
return api_url
|
return api_url
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user