From e9eb3dc17d2483f47defd700d2596993832c250f Mon Sep 17 00:00:00 2001 From: Sli Date: Wed, 7 Jan 2026 17:49:14 +0100 Subject: [PATCH] Fix image file generation on user image download * Add image id on the name to avoid error with images with the exact same date (if we have epoch for example) * Fix album name due to schema change not reflected here --- sas/static/bundled/sas/pictures-download-index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sas/static/bundled/sas/pictures-download-index.ts b/sas/static/bundled/sas/pictures-download-index.ts index 35471dba..fd4bb768 100644 --- a/sas/static/bundled/sas/pictures-download-index.ts +++ b/sas/static/bundled/sas/pictures-download-index.ts @@ -31,7 +31,7 @@ document.addEventListener("alpine:init", () => { await Promise.all( this.downloadPictures.map(async (p: PictureSchema) => { - const imgName = `${p.album}/IMG_${p.date.replace(/[:\-]/g, "_")}${p.name.slice(p.name.lastIndexOf("."))}`; + const imgName = `${p.album.name}/IMG_${p.id}_${p.date.replace(/[:\-]/g, "_")}${p.name.slice(p.name.lastIndexOf("."))}`; return zipWriter.add(imgName, new HttpReader(p.full_size_url), { level: 9, lastModDate: new Date(p.date),