GNOME Bugzilla – Bug 652953
track is removed from playlist if importing it via Files (instead of Folders) when rescanning library, caused by wrongly encoded URI
Last modified: 2011-12-11 21:04:04 UTC
Playlist entries may be removed if they contain special-chars like "&" or ",". To reproduce: * add a file which contains "&" in filename to collection "Import Media" * add the file to a playlist * rescan your collection "Rescan Music Library" * file will be removed out of playlist. this is caused by "Import Media" which does not encode special chars in URI-field correctly. --- f.e. "Appleblim & Ramadanman - Void 23 (Carl Craig Reedit)" * Import file "Import Media" * banshee will NOT encode "&" as "%26" during "Import Media". URI: Appleblim%20&%20Ramadanman%20-%20Void%2023%20(Carl%20Craig%20Reedit).mp3 * banshee is unable to find the entry in "Rescan Music Library"-Mode, because it tries to find URI: Appleblim%20%26%20Ramadanman%20-%20Void%2023%20(Carl%20Craig%20Reedit) * banshee will create a new db-entry. URI: Appleblim%20%26%20Ramadanman%20-%20Void%2023%20(Carl%20Craig%20Reedit) * banshee will remove the old db-entry (which contains "&" in uri-field) * banshee will clean all references in playlists. I think "Import Media" should encode chars correctly, too.
Banshee 2.0 (2.0.1) http://banshee.fm up-to-date Ubuntu 11.04
works fine in Banshee 1.6.1 ( Ubuntu 10.04 LTS )
Fabian, I just tried to reproduce the bug and couldn't. I'm running Banshee 2.0.0 in openSUSE 11.4. I got an MP3 file, I renamed it as "Appleblim & Ramadanman - Void 23 (Carl Craig Reedit).mp3" and placed in my $HOME/Music folder. I import the folder, the file is imported fine. I create a playlist and include the track in the playlist. I then rescan my music library, and the file is not removed from the playlist. Any insight of what I'm doing differently than you?
(In reply to comment #3) > Fabian, I just tried to reproduce the bug and couldn't. > > I'm running Banshee 2.0.0 in openSUSE 11.4. > > I got an MP3 file, I renamed it as "Appleblim & Ramadanman - Void 23 (Carl > Craig Reedit).mp3" and placed in my $HOME/Music folder. > > I import the folder, the file is imported fine. > I create a playlist and include the track in the playlist. > I then rescan my music library, and the file is not removed from the playlist. > > Any insight of what I'm doing differently than you? First, many thanks for your fast reply. I installed Ubuntu 11.04 into a VBox to get a clean env. Here are small video to show the steps required to reproduce this bug. http://www.mediafire.com/?p8cq4fmm8pk47za If you need further information, don't hesitate to ask.
(In reply to comment #4) > Here are small video to show the steps required to reproduce this bug. > > http://www.mediafire.com/?p8cq4fmm8pk47za > > If you need further information, don't hesitate to ask. Cool! It seems there are 2 different things we do: - You import the file, rather than the directory that contains the file. - You include the file in the playlist by right clicking on the album and selecting some option* (I was using drag&drop from the track). * Not sure yet which option, I'll look more carefully again (this is a bit complex because you're running banshee in a translated language, next time it would be great to run banshee with "LANG=C banshee" so it runs on English.
Please hold the line.. LANG=C and logs will follow.
Ok! The problem only happens when importing via "Files" instead of "Folders".
(In reply to comment #6) > Please hold the line.. LANG=C and logs will follow. Don't worry! I just managed to reproduce it :)
same "bug" if you try to import playlists (M3U)
My bug https://bugzilla.gnome.org/show_bug.cgi?id=655385 may be a duplicate. Seems that if playlists contain filenames with # symbols, they won't show up in the playlist unless it is URLEncoded first.
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. The fix is already available in Banshee 2.3.2. *** This bug has been marked as a duplicate of bug 661100 ***