memories: reject implausible filename-derived timestamps #80
Reference in New Issue
Block a user
Delete Branch "feature/filename-date-plausibility"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Filenames like
000227580005.jpg(film-scan ID) andIMG_21323906751390.jpegwere matched by the 10-16 digit timestampregex and resolved to 1970 / 2037, then written into
image_exif.date_takenwithsource = 'filename'. EXIF-lessphotos showed up under those bogus dates everywhere date_taken is
read.
Two new guards in
extract_date_from_filename:sane resolution).
Both let the date_resolver waterfall fall through to fs_time,
which is a much better proxy for content age than a fake epoch
date. Regression tests cover the two reported filenames.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com