refactor/photorenamer-planner #6

Merged
ludovic.terrier merged 7 commits from refactor/photorenamer-planner into master 2026-11-11 10:42:26 +01:00
Owner
No description provided.
These scripts touch backups and NAS paths, so a pasted key or token is
a real risk. A local pygrep hook keeps it dependency-free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The field split, exiftool's "-" placeholder and the skip reasons lived on
both sides of plan_rename, and the bugs fixed in c270d1f and ef127fe were
in the half unit tests could not reach. plan_rename now takes the raw
exiftool meta line and returns the full decision (action, log level,
message, format, warning); process_file only runs exiftool and acts on it.

Intended output change: a file with no CreateDate now logs "Missing EXIF
creation date" at debug level instead of "Incorrect EXIF creation date: -",
which leaked exiftool's placeholder. Renames, levels and exit codes are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
exiftool trims a blank Model in JPEG and HEIC, but MOV and MP4 return
Keys:Model=" " as is, so those files logged "Unrecognized camera model"
for a model that is not there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
plan_of runs each call in a subshell, so only the warning was checked
across calls. A Keys:CreationDate or Live Photo value left from a MOV
would have reached the next JPEG unnoticed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "-" placeholder and a whitespace-only model both mean no model, but
the first was cleared at the split and the second only where the
warning is set. Clearing both at the split means every later reader of
$model sees one rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every other plan result is empty unless its action uses it; datetag was
CreateDate even on skip and ignore, so a reader could not tell from the
value whether it meant anything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The META_FORMAT group runs exiftool on real files, so it is integration,
not unit. The plan_of comment only needs the field separator the
expected strings rely on. The blank-model exit status assert repeated
what many other blocks already check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ludovic.terrier/scripts!6
No description provided.