After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561822 - Rescan library doesn't import all the new songs
Rescan library doesn't import all the new songs
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Importing
1.4.1
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-21 15:39 UTC by Peterson Silva
Modified: 2010-01-31 00:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peterson Silva 2008-11-21 15:39:37 UTC
Please describe the problem:
When I tried to rescan my library (14 songs were added to the folders) only 3 were imported. I had to do it again 3 other times so it could gather all the songs. And still somehow Rhythmbox "sees" more songs in my folders than banshee does.

Steps to reproduce:
1. Add new songs to the folder where you keep your songs (which must also be the folder set for banshee's music library) using nautilus, thunar, mv, etc - anything but banshee itself or any other player...
2. Tell Banshee to rescan the library
3. Wait for the process to end and notice not all the new songs are imported (try to put a lot of songs there as it seems a small number of differences are dettected so 1 song won't make a difference)

Actual results:
The "rescan" process happens naturally. A dialog at the down left corner tells me banshee is rescanning the library; then another dialog appears and tells me it's importing some new songs to the library. But not all the new songs are imported. 

Expected results:
All the new songs should be imported.

Does this happen every time?
Everytime I tried it, yes.

Other information:
Rhythmbox says there are 4535 music files. Banshee says there are actually 4522. The songs I tried to import were mp3s.
Comment 1 Michael Martin-Smucker 2008-11-30 16:30:55 UTC
I can confirm this.  My parents just migrated to Linux and I was setting up their Ubuntu desktop.  I copied the contents of their Windows' "My Music" folder to "Music" in their new Home directory.  Here are the steps I took in reaching this same problem:

(0.  Banshee is set to copy files to the media folder when importing and write metadata to files.  I'm not sure if this matters.)

1. I manually added two songs from the desktop to the Banshee library, which Banshee copied into the music folder.
2. I upgraded to Banshee 1.4.1 using the Ubuntu PPA
3. I chose Tools > Rescan Music Library
4. Banshee imported 5 songs, bringing the total in the library from 2 to 7.
5. I repeated step 3.
6. Banshee found an extra 7 songs that it missed the first time, bringing the total to 14.
(7. I scanned again to make sure it had gotten everything; it had)
Comment 2 Gabriel Burt 2009-06-02 22:42:20 UTC
Peterson, can you identify which files were not rescanned?  I'm guessing there is a pattern to them - some common file/foldername or metadata issue that the Banshee rescan/import process is taking issue with.
Comment 3 Michael Martin-Smucker 2009-10-15 12:12:09 UTC
Per your comment, Gabriel, I'm going to mark this as NEEDSINFO.  I'll try to mess around with it sometime today to see if I can still reproduce this and if I can find a pattern.
Comment 4 Tobias Mueller 2010-01-29 00:16:38 UTC
So Michael, any news? :)
Comment 5 Michael Martin-Smucker 2010-01-29 19:23:08 UTC
Ha.  Sometime today... back in October. :)  I honestly have no idea if I looked at this or not. But tomorrow's the weekend! so I should have a chance to take a look at it then.  I'm leaving a sticky note for myself; if I haven't posted back here by Monday, feel free to close it as INCOMPLETE.
Comment 6 Michael Martin-Smucker 2010-01-31 00:01:21 UTC
I just tested this with an up-to-date git master.

I removed my current Banshee database and started with a fresh one.
My music folder contained 194 songs the first time I tested and a different 245 songs the second time I tested.
The file types included .mp3, .flac, .aif, .m4a, and .ogg.
The file names included symbols (including Sigur Rós' () album) and CJK characters.
I did an initial scan, then added songs to the folder and rescanned.

Every time I scanned, Banshee worked as expected.  (The one exception to the was the time that I manually set my Music directory to ~/.desktop/Music instead of ~/Music.  That time, Banshee found nothing, but that seems like a separate issue.)

FIXED seems like the most appropriate resolution.  This was a bug in an old version of the software, but it isn't reproducible in current version, so apparently it was fixed somewhere along the way.  If anyone - particularly Peterson, since he filed the bug - can still reproduce this with 1.5.3, feel free to reopen it.