Rockbox Technical Forums
Rockbox General => Rockbox General Discussion => Topic started by: grossaffe on June 23, 2008, 10:17:57 PM
-
I wouldn't know how to search for this topic if it already does exist because any key words are very ambiguous.
so, down to business. Is there anything I can do to prevent rockbox from picking up sound-files from certain folders and putting them in the database? In my case, I have a sansa e200 as you all know, it has a built-in voice recorded. The problem is that those voice-recordings are sound-files and rockbox picks up on them and assumes they're songs and loads them into the database to play with the rest of my music. Is there a text file I can plant in the a folder or something that tells the database scanner not to look in this folder?
-
Just put database.ignore files in any folders you don't want scanned (it'll prevent scanning of the folder, and all folders under it). There's already one in the .rockbox folder.
-
So it should just be basically an empty file named database.ignore?
edit: never mind, doesn't matter. As you said, there's already one in the .rockbox folder, so i guess all I need to do is copy it over. thanks for the help.
-
And for future reference:
If there's a subfolder inside an ignored folder that you DO want scanned, simply put a file in the subfolder called database.unignore
-
That got commited ?
I didn't think it had...
Apparently it did. My bad.
-
LinusN had suggested to give them better names like "database.exclude" and "database.include" but I guess it's a bit late for that now.
-
Perhaps this is a feature RockboxUtility could offer over and above it's current installation / upgrade method, which is essentially just unzipping a new build over the top of the old one.
If we introduce feature changes like a rename of those files from database.ignore/unignore to database.exclude/include then RBUtility could offer a post install script to run to change all existing instances on the DAP to the new name.
If we make the scripting feature of this dynamic enough, it might be a solution for things like when we break WPS syntax too. As I understand it we have a script which fixes the issues brought up by the recent %pb / conditional view ports changes too, so RBUtil could run this as part of the upgrade procedure to fix all the WPS it finds?
Anyone else think that this idea has merit ?
-
Is this how you prevent a folder from being used when you put your DAP on random by folder?
-
No, you need to use the random_folder_advance_config plugin for that. It's under Plugins -> Applications. I added a brief description to the manual yesterday, it should show up in the next daily edition.
-
Is this how you prevent a folder from being used when you put your DAP on random by folder?
No, that is done by removing the directory from the list in the random_folder_advance_config plugin.
There are 3 ways to do this:
1 - Use the "Edit Folder List" function in the plugin.
2 - Export the list, edit the exported text file (.rockbox/folder_advance_list.txt) with a text editor and then import it again.
3 - set up a folder_advance_dir.txt file in the .rockbox directory (like described here: http://www.rockbox.org/tracker/task/7074 ) and generate the folder list again using the plugin.
(I personally prefer 3)
-
I like the closing comment on that task. :P
-
awesome ! Thanks.
EDIT: In regards to PaulJam's #3 favorite. You need to create a folder_advance_list.txt file to import, not a ...dir.txt