GNOME Bugzilla – Bug 569379
Syncing removes and then adds the same files every time
Last modified: 2009-03-20 03:41:34 UTC
There is a bug with syncing such that it removes some files from the device, then adds them back every time. This must be because the MetadataHash (calculated from AlbumTitle, ArtistName, (int)Duration.TotalSeconds, Genre, TrackTitle, TrackNumber, Year) is not equal between the track on the device and in the Library. I need somebody that sees this problem to 1) identify a song that this is happening on 2) find it in the music library, right click on it -> Edit Track Information, write down all the values above (AlbumTitle, etc) 3) find it on the device (within Banshee) and do the same as 2) 4) report the info here
OK, I was able to reproduce and track down the root cause. The MetadataHash seems to be incorrectly calculated for songs w/ "Unknown Artist/Album" when they are first imported. I think this best way to fix this would be to replace our current MetadataHash calcualtion with a custom Sqlite funciton that runs on insert/update, like this: UPDATE CoreTracks SET MetadataHash = BANSHEE_CALC_METADATAHASH(..)
*** Bug 573219 has been marked as a duplicate of this bug. ***
*** Bug 573683 has been marked as a duplicate of this bug. ***
FYI: The patch for bug 528493 fixes this bug as well.
The patch for bug 528493 was committed so this should be marked FIXED as well. Thanks!
Fixed it for newly imported tracks, but not for tracks already in your library. I committed a migration to regenerate the MetadataHash for tracks with unknown artist/album/title. Fixed in my testing!