feat: public_url photobooth pour les medias dans la galerie
🚀 Deploy — JH Photomaton / 🔍 Vérification (push) Has been cancelled
🚀 Deploy — JH Photomaton / 🍓 Deploy sur le Pi (push) Has been cancelled

This commit is contained in:
2026-07-17 12:39:17 +02:00
parent 16bf9ddfb3
commit 49fa7a02ac
3 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -71,10 +71,12 @@ class PhotoboothService:
return False
def media_url(self, identifier: str) -> str:
return f"{self._base}/media/full/{identifier}"
base = (self._cfg.public_url.rstrip("/") or self._base)
return f"{base}/media/full/{identifier}"
def thumbnail_url(self, identifier: str) -> str:
return f"{self._base}/media/thumbnail/{identifier}"
base = (self._cfg.public_url.rstrip("/") or self._base)
return f"{base}/media/thumbnail/{identifier}"
async def read_pb_config(self) -> dict:
"""Lit le fichier config.json de photobooth-app."""