From d32b5e99afc6f0cffefa594510cda0e4f414db75 Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Fri, 22 May 2026 22:50:35 +0000 Subject: Speed up update.rb and fix UI always forcing full rescan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - update.rb: skip exiftool on images marked exif_absent (set after first failed attempt); prevents repeated slow scans of old photos with no EXIF - update.rb: explicit directory argument now implies force — passing a path always rescans that subtree regardless of sentinel mtime - app.rb: /admin/update no longer hardcodes --force; sentinel-based skipping is used by default, making UI updates finish in seconds instead of minutes - admin/album.erb: add "Force rescan all" checkbox to Run Update button; checked state passes force=1 to the server and restores --force behavior - README.md, DESIGN.md: document sentinel skipping, exif_absent flag, and explicit-directory force behavior Co-Authored-By: Claude Sonnet 4.6 --- views/admin/album.erb | 122 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 121 insertions(+), 1 deletion(-) (limited to 'views/admin') diff --git a/views/admin/album.erb b/views/admin/album.erb index 15a043f..14a8f07 100644 --- a/views/admin/album.erb +++ b/views/admin/album.erb @@ -140,6 +140,9 @@

Update

Scans this album for new/removed files, extracts EXIF data, and generates missing thumbnails.

+
+
+

Upload

+

Add photos or videos. To create a new sub-album, fill in a name below. Up to 2 GB per file (reverse proxy may impose a lower limit).

+
+ +
+
+ + + No files chosen + +
+ +
+ -- cgit v1.2.3