forked from MapComplete/MapComplete
Refactoring: image providers use ID everywhere
This commit is contained in:
parent
d9c1fe3f74
commit
1ddfffcee0
6 changed files with 19 additions and 20 deletions
|
|
@ -155,9 +155,9 @@ export class WikimediaImageProvider extends ImageProvider {
|
|||
return [this.UrlForImage("File:" + value)]
|
||||
}
|
||||
|
||||
public async DownloadAttribution(img: { url: string }): Promise<LicenseInfo> {
|
||||
const filename = "File:" + WikimediaImageProvider.extractFileName(img.url)
|
||||
console.log("Downloading attribution for", filename, img.url)
|
||||
public async DownloadAttribution(img: { id: string }): Promise<LicenseInfo> {
|
||||
const filename = "File:" + WikimediaImageProvider.extractFileName(img.id)
|
||||
console.log("Downloading attribution for", filename, img.id)
|
||||
if (filename === "") {
|
||||
return undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue