Backport Bottles thumbnail fix

This commit is contained in:
kramo
2023-06-22 21:13:27 +02:00
parent c38a73ea98
commit 41c2a1023a

View File

@@ -69,6 +69,9 @@ class BottlesSourceIterator(SourceIterator):
bottles_location = self.source.data_location.root / "bottles"
bottle_path = entry["bottle"]["path"]
additional_data = {}
if entry["thumbnail"]:
image_name = entry["thumbnail"].split(":")[1]
image_path = bottles_location / bottle_path / "grids" / image_name
additional_data = {"local_image_path": image_path}