mirror of
https://github.com/ae-utbm/sith.git
synced 2026-01-10 04:50:09 +00:00
Compare commits
1 Commits
taiste
...
download-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
e9eb3dc17d
|
@@ -31,7 +31,7 @@ document.addEventListener("alpine:init", () => {
|
|||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
this.downloadPictures.map(async (p: PictureSchema) => {
|
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), {
|
return zipWriter.add(imgName, new HttpReader(p.full_size_url), {
|
||||||
level: 9,
|
level: 9,
|
||||||
lastModDate: new Date(p.date),
|
lastModDate: new Date(p.date),
|
||||||
|
|||||||
Reference in New Issue
Block a user