GNOME Bugzilla – Bug 630663
Banshee re-imports songs containing apostrophe (') or ampersand (&)
Last modified: 2010-10-14 02:51:38 UTC
When scanning Banshee's music library for new songs, the program re-imports songs containing apostrophe or ampersand, and adds them to "recently added" smart list, even though they exist in the program's library a long ago. Note that the songs date-added stamp is updating with every import. As I use Banshee's PPA and scanning the music library on a daily basic, I believe this is a new bug, a regression started in the last few builds.
I am also seeing this behaviour. It seems to be for songs with a colon ":" or a comma "," as well.
Confirmed, this only happens with the GIO backend.
Banshee.IO.Gio.Directory.GetFiles() and .GetDirectories() use System.Uri.EscapeDataString on the file name coming from the filesystem. The result is then compared to the Uri in the database. The problem is that EscapeDataString escapes much more characters than what is done on filename in the DB (through g_filename_to_uri in SafeUri). The comparison then always fail if the filename contains one of those characters. I couldn't find a really good solution for now, suggestions welcome.
(In reply to comment #1) > It seems to be for songs with a colon ":" or a comma "," as well. I confirm for comma, but not for colon.
This issue sounds like a duplicate of Bug 623441, so I'm closing it as such. Re-open it if you disagree, and feel free to continue this conversation about which characters are affected over at 623441. Thanks! *** This bug has been marked as a duplicate of bug 623441 ***