Rockbox General > Rockbox General Discussion

How to exclude certain directories from Database?

(1/1)

Benway:
I've been happily using Rockbox for over 2 years. Only now I've decided to give the database a try. So far I like it very much, but my problem is that I would like the database be limited to only one directory (eg. /music) and to ignore everything else (podcasts, audio books, recordings). Is this possible?

The manual does not contain info on this. I've also read the wiki page about cutomizing the tagnavi.custom file but did not quite understand...  ???
Could someone please explain in simple terms how to do it? Thanks a lot

pabouk:
The DataBase wiki page has information about the problem and it was also already discussed in this forum. Please search. For example my tagnavi_custom.config contains:

--- Code: ---# My main menu
%menu_start "my_main" "My main menu"
"Artist"   -> artist ? filename ^ "/Music/"  -> album  -> title = "fmt_title"
"Album Artist"   -> albumartist ? filename ^ "/Music/"  -> album  -> title = "fmt_title"
"Album"    -> album ? filename ^ "/Music/"   -> title = "fmt_title"
"Genre"    -> genre ? filename ^ "/Music/"   -> artist -> album -> title = "fmt_title"
"Composer" -> composer ? filename ^ "/Music/"  -> album -> title = "fmt_title"
"Track"    -> title ? filename ^ "/Music/"
"Year"     -> year ? year > "0" & filename ^ "/Music/" -> artist -> album -> title = "fmt_title"
"User Rating" -> rating -> title = "fmt_title"
"Recently Added" -> album ? entryage < "4" & commitid & filename ^ "/Music/" > "0" -> title = "fmt_title"
"Podcasts" ==> "podcast"

# And finally set my main menu as the root menu
%root_menu "my_main"
--- End code ---

DervishD:
Hi pabouk :)

Please note that the directories are still being indexed. It's only the browser doesn't show their contents when using "^" in the filter. If you have a directory with many files that change from time to time (e.g. if you have a dir in the DAP to review new music, as I do), the database must be updated regularly and that's a waste of battery ;)

An option  to avoid indexing some dirs would be great, as suggested by FS#5960.

I'll search the forum, too, I'm very interested in this issue.

Raúl

pabouk:

--- Quote from: DervishD on August 12, 2007, 07:20:19 AM ---Please note that the directories are still being indexed.
--- End quote ---
Hi Raúl,
yes, it is a known problem. I would be glad if an acceptable solution appears and finds its way into the svn :)

Navigation

[0] Message Index

Go to full version