Skip to content

v0.5.0: a re-run never duplicates captions

Latest

Choose a tag to compare

@jbenhart44 jbenhart44 released this 20 Oct 10:38
· 1 commit to main since this release
ae414b3

A re-run never duplicates captions.

Install

curl -L https://github.com/jbenhart44/captioner/releases/download/v0.5.0/captioner-0.5.0.zip -o captioner.zip \
  && unzip -o captioner.zip && cd captioner-0.5.0 \
  && pip install -r requirements.txt && bash install.sh

Changed

  • apply_captions.py refuses a deck that already holds captioner shapes unless --update-existing is passed. It names the shape count and the flag, writes no deck and no audit CSV for that deck, and exits 4. Before, the same run silently added a second set of captions.

Fixed

  • --update-existing now strips in-picture band captions (captioner_capband_), which were left behind and duplicated on every update. A band caption a person edited is kept.
  • The mutation check now counts a check as caught only where it is reported failing. It used to pass on the exit code alone.
  • SKILL.md now says what happens to a video (its poster frame is captioned like a picture).

Tests

New tests/test_rerun.py (10 checks) runs the real extract → apply chain twice on the bundled deck. Three new mutants; 7/7 caught. CI on Linux and macOS, Python 3.9 and 3.12.