Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  How to exclude certain directories from Database?
« previous next »
  • Print
Pages: [1]

Author Topic: How to exclude certain directories from Database?  (Read 1482 times)

Offline Benway

  • Member
  • *
  • Posts: 40
How to exclude certain directories from Database?
« on: August 11, 2007, 01:41:12 PM »
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
Logged

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: How to exclude certain directories from Database?
« Reply #1 on: August 11, 2007, 04:51:14 PM »
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: [Select]
# 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"
Logged

DervishD

  • Guest
Re: How to exclude certain directories from Database?
« Reply #2 on: August 12, 2007, 07:20:19 AM »
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
Logged

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: How to exclude certain directories from Database?
« Reply #3 on: August 12, 2007, 05:44:23 PM »
Quote from: DervishD on August 12, 2007, 07:20:19 AM
Please note that the directories are still being indexed.
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 :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  How to exclude certain directories from Database?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.292 seconds with 15 queries.