fix: reuse identical music files instead of numbered copies

- compare size and SHA-256 before copying a track into the routine folder
- keep the file the current routine already references when content matches
- convert M4A/AAC into a scratch file and dedupe it by content
- extend playback tests for repeated loads and same-name variants
This commit is contained in:
torsten 2026-11-10 20:27:25 +01:00
parent 2edd756920
commit e23520e630
5 changed files with 169 additions and 34 deletions

View file

@ -159,6 +159,10 @@ Dateiname vermerkt.
(und tiefer), bei 2× schneller.
- **×** entfernt die Musik aus der Kür, löscht die Datei aber nicht. So
bleibt sie für andere Kürdateien erhalten.
- Dasselbe Stück kann beliebig oft geladen werden: Ist der Inhalt schon im
Kür-Ordner vorhanden, wird die vorhandene Datei weiterverwendet. Eine
Nummer im Namen (`… 2.mp3`) entsteht nur bei echt unterschiedlichem Inhalt
gleichen Namens.
- Beim **Sync** wird die Musikdatei wie die Kür-JSON hoch- und
heruntergeladen. Fehlt sie auf einem Gerät, zeigt die Leiste
„(fehlt)“; nach dem nächsten Sync ist sie verfügbar.