mirror of
https://github.com/navidrome/navidrome.git
synced 2026-12-05 03:07:25 +00:00
TagLib reports the year of M4A and WMA files as DATE, like MP3 and FLAC, and also sends the raw ©day atom and WM/Year attribute. Both raw tags were releasedate aliases, so those files got a release date that MP3/FLAC tracks of the same album did not. The default album PID hashes the release date, so mixed-format albums split in two (#6467). Remove ©day and WM/Year from the releasedate aliases. The year still comes from DATE. A new migration clears scanned_pid_album for libraries that have M4A/WMA files and use releasedate (or album_legacy) in their album PID, unless Tags.releasedate is overridden. The scanner then rescans only those libraries in full, regroups the albums under their new IDs and moves album annotations.