forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
a8fd550b72
commit
6a0b77eb99
180 changed files with 16812 additions and 2509 deletions
|
|
@ -134,7 +134,9 @@ export class WikimediaImageProvider extends ImageProvider {
|
|||
"titles=" +
|
||||
filename +
|
||||
"&format=json&origin=*"
|
||||
const data = await Utils.downloadJsonCached<{query: {pages: {title: string, imageinfo: { extmetadata} []}[]}}>(url, 365 * 24 * 60 * 60)
|
||||
const data = await Utils.downloadJsonCached<{
|
||||
query: { pages: { title: string; imageinfo: { extmetadata }[] }[] }
|
||||
}>(url, 365 * 24 * 60 * 60)
|
||||
const licenseInfo = new LicenseInfo()
|
||||
const pageInfo = data.query.pages.at(-1)
|
||||
if (pageInfo === undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue