Improvements in loading images

This commit is contained in:
Pieter Vander Vennet 2021-10-01 02:57:41 +02:00
parent 634f4e316a
commit 8b870474d7
9 changed files with 61 additions and 31 deletions

View file

@ -26,6 +26,10 @@ export class WikidataImageProvider extends ImageProvider {
if (value.startsWith(wikidataUrl)) {
value = value.substring(wikidataUrl.length)
}
if(value.startsWith("http")){
// Probably some random link in the image field - we skip it
return undefined
}
if (!value.startsWith("Q")) {
value = "Q" + value
}