GNOME Bugzilla – Bug 400379
Songs get imported more than once b/c of symlinks
Last modified: 2008-03-30 02:29:19 UTC
- import a directory => songs show up in library - import that directory again => songs show up twice! ... This should clearly not be the case and I think this was working fine in 0.10.x (perhaps releated to 383151? anyway, much worse)
This is still happening on trunk as of today.
After looking at the DB I found the problem: my library location was set to $HOME/media/library, with $HOME/media being a link to /mnt/media. The first few thousand songs had the URI set to $HOME/media/library...... but at some point I suppose banshee started to use what's behind the symlink, so the later entries all had /mnt/media/......
I think this should be closed then. For what it's worth, there is the Banshee cleanup library plugin here: http://code.google.com/p/banshee-cleanup-plugin. I expect this would clean up all old tracks with the old location.
While the cleanup plugin solves the problem, it doesn't keep it from happening in the first place, which I expect to be the desired result. Plus, that is a 3rd-party plugin. Michael, are you still seeing this issue?
Josiah: at some point I deleted my database because it was beyond repair, really (mostly due to podcasts, the plugin is totally broken and I really hope podcasts will get their own database in an upcoming version...) But the main cause I described in comment 2 (taking a symlink VS taking the real path to the import folder) still causes the duplication. I think it would be quite easy to resolve symlinks and only use the real path in the DB.
If someone could take the time to verify Andrew's symlink issue, I'll mark this new. If I get some time later, maybe I'll test it myself. Okay(In reply to comment #5) > Josiah: at some point I deleted my database because it was beyond repair, > really (mostly due to podcasts, the plugin is totally broken and I really hope > podcasts will get their own database in an upcoming version...) I'm looking forward to a rewrite of the podcast plugin also. That seems to be a major plugin without a major amount of time available to be hacked on. > But the main cause I described in comment 2 (taking a symlink VS taking the > real path to the import folder) still causes the duplication. I think it would > be quite easy to resolve symlinks and only use the real path in the DB. How about I add the gnome-love keyword to this. Maybe someone will be interested in picking this one up.
Bug #421376 looks like a promising way to clean up the duplication, though I don't think it will fix the symlink problem.
Please close this bug, it's fixed: http://img62.imageshack.us/img62/3327/400379qa2.png Banshee version: 0.13.1 in openSuSE 10.3 with a symlink to a folder in a NTFS partition(Banshee is great :)
Igor Guerrero Fonseca: did you import from both /home/igor/Music and /mnt/whatever (where the nfs mount is)?
Ahh no... importing the same folder from the same place... I think I understand your request: /home/user/Music/this - is a great song.ogg is *equal* to: /mnt/sda1/Music/this - is a great song.ogg ? That's what you are trying to explain? If that the case I'm not agree with the idea of tagging a song as the same some if they are in different locations.
Yes, if /home/user/Music is just a link to /mnt/sda1/Music.
But... it doesn't make any sense! Lets wait for a Banshee main developer opinion.
*** Bug 465353 has been marked as a duplicate of this bug. ***
Is this happening in SVN trunk?
I don't think this is a bug anyway... see the comments looks like the reported see a song twice but its because is the song in different locations I don't see anything bad in this.
Then feel free to close...
(In reply to comment #16) > Then feel free to close... I was mostly looking for your word on this. :)