diff --git a/scripts/slim-embedded-art.py b/scripts/slim-embedded-art.py index bb8f0b2..1f43ea7 100755 --- a/scripts/slim-embedded-art.py +++ b/scripts/slim-embedded-art.py @@ -137,7 +137,10 @@ def process(path, apply): t.delall("PIC") t.add(APIC(encoding=0, mime="image/jpeg", type=3, desc="", data=jpeg)) v2 = 4 if tag.version >= (2, 4, 0) else 3 - t.save(v2_version=v2, padding=lambda info: 0) + # v1=0 REMOVES any trailing ID3v1 tag: it is a 128-byte legacy appendix fully redundant + # with the v2 frames, and keeping it in sync is what tripped the audio guard before the + # guard learned to exclude it. Decided 2026-08-29: strip it wherever we rewrite. + t.save(v1=0, v2_version=v2, padding=lambda info: 0) if audio_region_hash(tmp) != before: raise RuntimeError("audio bytes changed - keeping original") os.replace(tmp, path)