Bugzilla – Bug 17782
Rescan after modifying embedded cover art corrupts track metadata
Last modified: 2012-08-05 10:44:50 UTC
Updated the embedded cover art on an album, bumped the timestamps on all the FLAC files in the album directory forward by 2 seconds and then did a scan for new and changed. The track listing metadata showed track 1 twice and then track 3, etc. despite the tags being correct in the file for track 2. I tried moving the album from out of the music directory structure, scanned for new and changed to remove it, copied it back, scanned for new and changed again at which point the scanner locked up seemingly because of the other bug on file renaming, stopped and restarted the server, scanned again and got the correct track order. Shortly thereafter I (perhaps foolishly) updated the cover art on another album. Scanned, got track 1 twice and then track 3 as before, but this time I just did a second scan and it fixed itself.
This bug is still persisting in 7.7.2. Removing an album from the library, scanning for new and changed to delete it, adding it back, scanning for new and changed can also cause the problem. Or, sometimes, if you've changed the artwork on more than one album in a day the second scan for new and changed can break the track 2 tags on the first album. This really needs an urgent fix as you can get database corruption and not even realise it.
*** This bug has been confirmed by popular vote. ***