Support and General Use > Plugins/Viewers

Random folder custom directories

(1/2) > >>

Mmmm:
I find it quite annoying that every time I scan my folders with the random_folder_advance plugin, I always have to delete a large number of folders from the list so that radio recordings and other things aren't picked. As I change the contents of my drive fairly often this happens all the time.

So I have written a patch so that you can permanently store the folders that you want scanned in a file and then only these files are scanned.
Here it is:
FS #7074

You must create a text file in /.rockbox called "folder_advance_dir.txt" and in this file you should put your directories.

eg.
if your root folder contains:
CDs--------> a-m
 Â  --------> n-z
 Â  -------->favourites
downloads-->a-m
 Â        -->n-z
pictures

if you make your folder_advance_dir.txt look like this:

--- Code: ---CDs
downloads/a-m
--- End code ---

then just
CDs--------> a-m
 Â  --------> n-z
 Â  -------->favourites
downloads-->a-m

will be scanned and you won't have to delete
downloads-->n-z
pictures

A nifty side effect of this is that if you put this into your folder_advance_dir.txt file

--- Code: ---CDs
CDs/favourites
downloads/a-m
--- End code ---
then the favourites folder will be twice as likely to be picked than any other folder!
So you can put a bias on any folders you like!  :o

What do you think?
Please test it... :-) (only one smiley allowed per post??)

Llorean:
Smileys aren't too useful in a technical forum. I had limited it to three, and discovered that still didn't discourage people from using three of the ??? smilies after questions (as opposed to 6 or 7 as was in the past).

I really only see the smilies as being useful (in a practical sense) when using the winking one to denote that something is a joke or meant in jest. So I decided that you can probably safely get away with one.

PaulJam:
Hi,

nice feature.

I was wondering if this could be extended to also be able to specify folders that should not be included in the folderlist. For example in my music directory i have a folder "various artists" that i don't want to be played in random folder mode. With your patch i still have to delete this one manually from the folderlist.

Mmmm:
Hmm... I'll have a think about that...will be a bit trickier though I think...

JdGordon:
changing it to use a whitelist and a blacklist should be fairl trivial... just it will takes ages if the list is fairly big :(

Navigation

[0] Message Index

[#] Next page

Go to full version