v0.79.3: editing the playing song's tags or art no longer glitches playback

This commit is contained in:
2026-10-25 20:09:55 -07:00
parent b8f2325f0b
commit eba27e7b8c
5 changed files with 179 additions and 46 deletions
+9
View File
@@ -1239,6 +1239,15 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
the file to the desktop trash via `trash.py` — never `unlink`, so it stays
recoverable. Nothing else may move, rewrite or remove music files. The library
JSON is the source of truth for everything else.
**The playing song's tags are never saved in place** (Round 111):
mutagen shifts the audio inside the file when a tag outgrows its
padding, and the decoder, reading by offset, glitched (~1.3 M samples
wrong in a 20 s test). `tagging.in_use` (MainWindow: the player's
current track) names those files; `tagging._editable` saves them to a
copy beside them and `os.replace`s it over, so the open file keeps the
old inode, untouched (0 samples wrong). Everything else stays in place —
a full copy per file would make a big batch edit cost gigabytes. No room
for the copy falls back to in place.
- **Versioning & self-update:** `__version__` in `lintunes/__init__.py` is
the single source of truth (`setup.py` regex-reads it, never imports the
package). Claude bumps minor for feature rounds and patch for fix-only