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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  custom database???
« previous next »
  • Print
Pages: [1]

Author Topic: custom database???  (Read 3188 times)

Offline MozyMan

  • Member
  • *
  • Posts: 19
custom database???
« on: June 19, 2007, 06:50:24 PM »
i've got a 5G 30gb iPod, and i was wondering if there was a way to select what folders rockbox searchs for music to add to its database, like stopping it from searching the itunes folder, as i have already copied my music to a folder in the root of my iPod, and so it now shows each song twice in the database...

any ideas anyone??
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: custom database???
« Reply #1 on: June 19, 2007, 08:18:13 PM »
You're sacrificing half of your disk space to redundantly store all of your files in a file tree and in iTunes' obfuscated filing system?  (You said "copied".)

If you are set on this strategy you can probably have a look at the database code and tell it to search a particular directory (and subdirectories) instead of the entire drive.  
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline MozyMan

  • Member
  • *
  • Posts: 19
Re: custom database???
« Reply #2 on: June 19, 2007, 08:41:45 PM »
where do i go to look at thte database code or what do i do??
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: custom database???
« Reply #3 on: June 19, 2007, 08:49:58 PM »
Remove the music in the root of your ipod?
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: custom database???
« Reply #4 on: June 20, 2007, 02:26:30 AM »
Quote from: MozyMan on June 19, 2007, 08:41:45 PM
where do i go to look at thte database code or what do i do??

Download the source code - there's heaps of info on this in other forum posts and on the wiki - and no need for anyone to spell it out again here.
Logged

Read The Manual Please

Offline MozyMan

  • Member
  • *
  • Posts: 19
Re: custom database???
« Reply #5 on: June 20, 2007, 08:30:47 AM »
hey,
i found this page about the tagnavi_custom.config file, and about setting different parameters in it. it said at the bottom of the page about excluding folders, so if i make a tagnavi_custom.config with this:

#! rockbox/tagbrowser/2.0"
filename !^ "/iPod_Control/"

should it exclude the iPod_Control folder???
Logged

Offline gnu

  • Member
  • *
  • Posts: 269
Re: custom database???
« Reply #6 on: June 20, 2007, 08:57:32 AM »
The easiest way to find out is trying.
I personally don't use the database, so I can't help you.
Logged

Offline MozyMan

  • Member
  • *
  • Posts: 19
Re: custom database???
« Reply #7 on: June 20, 2007, 12:00:04 PM »
nope it didnt work...
anyone know anything about what to put in the tagnavi file to exclude the search of the iPod_Control folder???
« Last Edit: June 20, 2007, 12:32:38 PM by MozyMan »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: custom database???
« Reply #8 on: June 20, 2007, 01:50:46 PM »
You can only use that to exclude files in an individual database query, it is not a global setting.

i.e., you could write a custom database file that filtered out iPod_Control files, but you would have to have that statement in every line.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline MozyMan

  • Member
  • *
  • Posts: 19
Re: custom database???
« Reply #9 on: June 20, 2007, 02:53:08 PM »
so do you mean that i would have to write a separate line for each file that i wanted to be excluded from the database???
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: custom database???
« Reply #10 on: June 20, 2007, 03:36:15 PM »
No, that's not how the Database works.

It works by writing each required database menu entry, which is actually a filter, describing what you want to select. e.g.:

artist -> album -> title

initially displays all artists. When you select one, it lists all albums by that artist. When you select an album, it lists all tracks on that album.

Yours would need to be:

artist ? filename !^ "/iPod_Control/" -> album -> title

etc, etc...
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline ZincAlloy

  • Member
  • *
  • Posts: 488
Re: custom database???
« Reply #11 on: April 27, 2008, 09:02:28 PM »
this thread is pretty old, but it should be noted that directories can be excluded from scanning for database data by placing a file named "database.ignore" in them (wow, the manual IS really useful).
« Last Edit: April 27, 2008, 09:06:53 PM by ZincAlloy »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  custom database???
 

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

Page created in 0.11 seconds with 14 queries.