[fix] openverse: update API and website URL (#4275)

This commit is contained in:
XLion 2025-02-03 05:12:24 +08:00 committed by GitHub
parent 6324a9752a
commit ab1e895cc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,9 +10,9 @@ from urllib.parse import urlencode
about = {
"website": 'https://wordpress.org/openverse/',
"website": 'https://openverse.org/',
"wikidata_id": None,
"official_api_documentation": 'https://api.openverse.engineering/v1/',
"official_api_documentation": 'https://api.openverse.org/v1/',
"use_official_api": True,
"require_api_key": False,
"results": 'JSON',
@ -23,7 +23,7 @@ categories = ['images']
paging = True
nb_per_page = 20
base_url = 'https://api.openverse.engineering/v1/images/'
base_url = 'https://api.openverse.org/v1/images/'
search_string = '?page={page}&page_size={nb_per_page}&format=json&{query}'