diff --git a/api_v1/scanphoto.js b/api_v1/scanphoto.js index d3c7c9f..8712639 100644 --- a/api_v1/scanphoto.js +++ b/api_v1/scanphoto.js @@ -256,7 +256,7 @@ async function scanDir(dirAbs, results = []) { const ext = path.extname(dirent.name).toLowerCase(); if (!SUPPORTED_EXTS.has(ext)) continue; - + console.log("Elaboro:", absPath); const isVideo = ['.mp4', '.mov', '.m4v'].includes(ext); const relFile = toPosix(path.relative(WEB_ROOT, absPath)); @@ -368,7 +368,7 @@ async function scanPhoto(dir) { await fsp.mkdir(path.dirname(absIndexPath), { recursive: true }); await fsp.writeFile(absIndexPath, JSON.stringify(photos, null, 2), 'utf8'); } - + await new Promise(r => setTimeout(r, 500)); return photos; } catch (e) { diff --git a/public/index.html b/public/index.html index 6116b1e..191ab18 100644 --- a/public/index.html +++ b/public/index.html @@ -18,6 +18,7 @@ +
@@ -25,6 +26,7 @@ - - -