PDA

View Full Version : Browse Music Folders Issue



saltydog4791
2006-10-27, 13:27
Hello all,

Simple question I have. Is it possible to force Browse Music Folders to actually refresh the folders without rescanning the music library. I had a Windows shortcut pointing to another server that was down during my last scan so Slim now is treating it as a file instead of following the shortcut. There must be a way to force the directory listing to refresh without doing a scan. I have a massive library that I do not want to rescan again.

Thanks to anyone who can help me with this.

mike m

saltydog4791
2006-10-28, 17:13
Does anyone have an answer for this, or know where I should be asking the question? I see that my question had 48 views but not one reply. :(

mike m

radish
2006-10-28, 17:50
There's no way (that I know of) to remove something from the DB without a rescan. How long does it really take? Can't you leave it overnight?

jeffluckett
2006-10-28, 20:12
There's no way (that I know of) to remove something from the DB without a rescan. How long does it really take? Can't you leave it overnight?

Well ... if you know SQL ... it's quite easy to remove something from the database.

radish
2006-10-28, 22:28
Well ... if you know SQL ... it's quite easy to remove something from the database.

Well obviously, but I was assuming that wasn't a practical suggestion :)

saltydog4791
2006-10-29, 11:36
But I am confused. Doesn't "browse music folders" do just that? Shouldn't it just be reading what is in the folders, even at the root? I don't see why altering the DB or doing a rescan should matter. If I were to drill down thru the directories it would function that way, right? So how do you get slim to do that from the top of the tree? I hope that makes some more sense re: my original question.

mike m.

georgem
2006-10-30, 11:08
Mike;

I had a similiar problem that I posted about and engaged support also. I keep my folders named as "Lastname, Firstname" (for example "Bach, J.S.") and on occassion folder would not be recgnized and I would get a link to download a song. I did some debugging and can tell you that "browse folders" is not limited to system file browsing only. Previous scans data is kept in slimserver.track and slimserver.artist tables and directories are not recognized if you scanned artist with same name as a directory name. At least this is how this worked for me.

I don't need to scan and did the follownig to get rid of the problem

- eliminate scanning by renaming scan.pl to something like scan.pl.bkp
- remomve formatting that attempts to guess the artist based on the directory/file name. Server options.
- delete all data from slimserver database in MySql
- delete Cache
- restart slimserver

When you browse folders new entries will be made to the slimserver.tracks table but scanned data will not be able to mess up file recognition.

georgem
2006-11-02, 09:22
My problem with browsing music folders would not completely go away despite trying different setting on the server. Eventually, I started to look at the code and here it was. In Perl module Info.pm there is a simple test to see if a particular path is a directory or a file. Some of my directories were not recognized as such, because I had a trailing blank in the directory name and slimserver code was stripping all trailing blanks from the path before the 'dir' check.

>>Bach, J.S. << is not the same as >>Bach, J.S.<<

Kind of obvious, but I could not see this until I noticed that slimserver code drops all trailing blanks. On occasion I would have trailing blank in a directory name as I create/or change them manually.

I'm running 6.5.1 October 10 build.

jeffluckett
2006-11-02, 09:48
But I am confused. Doesn't "browse music folders" do just that? Shouldn't it just be reading what is in the folders, even at the root? I don't see why altering the DB or doing a rescan should matter. If I were to drill down thru the directories it would function that way, right? So how do you get slim to do that from the top of the tree? I hope that makes some more sense re: my original question.

mike m.

Browsing music folders, and scan for changes only is an additive process only. For whatever reason, if you delete something from the music folder, you have to do a complete dump and rescan for it to be recognized.