summaryrefslogtreecommitdiff
path: root/immich.py
diff options
context:
space:
mode:
Diffstat (limited to 'immich.py')
-rw-r--r--immich.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/immich.py b/immich.py
index ad39942..0f319c5 100644
--- a/immich.py
+++ b/immich.py
@@ -40,6 +40,13 @@ class ImmichConnector:
mimetype = response.headers.get("Content-Type")
return image_data, mimetype
+ def load_image_filename(self, key):
+ response = self._request(f"assets/{key}")
+ if not response or response.status_code != 200: return None, None
+
+ data = response.json()
+ return data["originalFileName"]
+
def load_texture_async(self, texture_list, image_texture):
self.texture_load_queue.put((texture_list, image_texture))