summaryrefslogtreecommitdiff
path: root/immich.py
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-06-20 22:32:28 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-06-20 22:32:28 -0500
commitce64f1a42c9570efa75cc2f568e59d683f499bdd (patch)
tree03563a0ce3ce666f465989044120797e5170ff6f /immich.py
parentc9e7eb40fc5f408cc4177763fd4e82a3632388a1 (diff)
downloadimmich-frame-ce64f1a42c9570efa75cc2f568e59d683f499bdd.tar.xz
immich-frame-ce64f1a42c9570efa75cc2f568e59d683f499bdd.zip
config update and more endpoints for api fromtend
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))