some more images

This commit is contained in:
2024-12-17 10:28:33 +01:00
parent d186a51a87
commit e78bee4597
3 changed files with 80 additions and 66 deletions

View File

@@ -93,6 +93,11 @@ patchLandmarkImage(Landmark landmark) async {
if (newUrl != null) {
landmark.imageURL = newUrl;
}
} else if (landmark.imageURL!.contains("photos.app.goo.gl")) {
// the image is a google photos link, we should get the image behind the link
String? newUrl = await getImageUrlFromGooglePhotos(landmark.imageURL!);
// also set the new url if it is null
landmark.imageURL = newUrl;
}
}