Refactoring: image providers use ID everywhere

This commit is contained in:
Pieter Vander Vennet 2025-06-05 12:21:38 +02:00
parent d9c1fe3f74
commit 1ddfffcee0
6 changed files with 19 additions and 20 deletions

View file

@ -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
}