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
| | |-+  tagnavi.config v2.0 syntax
« previous next »
  • Print
Pages: 1 [2] 3 4 ... 7

Author Topic: tagnavi.config v2.0 syntax  (Read 48857 times)

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #15 on: September 28, 2006, 01:02:53 PM »
Quote from: roolku on September 28, 2006, 12:55:29 PM
Thanks, I have attached a slightly improved version (v0.2). Also I have some more ideas, but no time to try them. :(
Well, now I've got it working, I'll be working up my own version, but I'll keep the artist_initial listing, as that really gives me what I was looking for.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline xlarge

  • Member
  • *
  • Posts: 191
Re: tagnavi.config v2.0 syntax
« Reply #16 on: October 04, 2006, 09:06:40 AM »
What patch are you talking about in your menue?
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: tagnavi.config v2.0 syntax
« Reply #17 on: October 04, 2006, 06:16:04 PM »
Quote from: xlarge on October 04, 2006, 09:06:40 AM
What patch are you talking about in your menue?
This one: http://www.rockbox.org/tracker/task/6098
Logged

Offline xlarge

  • Member
  • *
  • Posts: 191
Re: tagnavi.config v2.0 syntax
« Reply #18 on: October 24, 2006, 09:05:21 AM »
I'm having a hard time understanding the logic...

Since we got the "Basic format declarations" some of your menues disappear.
I've experimented some... replacing most of your format stuff with the basic declaration constants instead... It works..
But what baffels me is that if i use
title = "fmt_mostplayed"
it works but not if i copy the exact string from basic format declarations and use that as
title = "(%3d) %s" playcount title %sort = "inverse" %limit = "100"
wich.. in my world would be exactly the same thing but the menue option doesn't show up.

Should i add my own format constants in tagnavi_custom.conf?
Why didn't i think of that until now?

I've done some sort of update to your config... It works for me... I think...

(edit added " around fmt_mostplayed...)

[attachment deleted by admin, too old]
« Last Edit: October 24, 2006, 09:40:50 AM by xlarge »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #19 on: October 24, 2006, 09:29:33 AM »
Quote from: xlarge's tagnavi file on October 24, 2006, 09:05:21 AM
#i wish this would work...
%format "fmt_title_artist"       "%s (%s)" title artist
So do I, but according to this table artist is not supported for formatting :(

As for your other questions, I've not played around with the formatting string, but you're right that if it does not appear, then it's because Rockbox chokes on the syntax...

I believe the theory is that you put all your personal changes in the ..._custom.cfg file, as then they are not lost if the default one changes for any reason.

Also, I have found replacing the Artist = "T" line with the following very useful to reduce the number of artist results:
Code: [Select]
"T"   -> artist ? artist ^ "T" & artist !^ "The " -> album  -> title = "%02d %s" tracknum title
"The..."   -> artist ? artist ^ "The " -> album  -> title = "%02d %s" tracknum title
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline xlarge

  • Member
  • *
  • Posts: 191
Re: tagnavi.config v2.0 syntax
« Reply #20 on: October 24, 2006, 09:33:09 AM »
Clever! (I'll nick that aswell)
But, again, i can't use formats unless they are constants...

I must be doing something wrong?
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: tagnavi.config v2.0 syntax
« Reply #21 on: October 24, 2006, 10:44:00 AM »
Quote from: xlarge on October 24, 2006, 09:33:09 AM
But, again, i can't use formats unless they are constants...

I must be doing something wrong?

With Slasheri's introduction of conditional formats you now have to declare all format strings explicitly. :( I'll go and update the wiki...

It was a bit of a messy change, but my current file is attached for reference.

EDIT: wiki updated

[attachment deleted by admin, too old]
« Last Edit: October 24, 2006, 11:26:50 AM by roolku »
Logged

Offline Slasher

  • Developer
  • Member
  • *
  • Posts: 35
Re: tagnavi.config v2.0 syntax
« Reply #22 on: October 24, 2006, 01:56:08 PM »
Quote from: xlarge's tagnavi file on October 24, 2006, 09:05:21 AM
#i wish this would work...
%format "fmt_title_artist"       "%s (%s)" title artist

Now that should work. :)
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: tagnavi.config v2.0 syntax
« Reply #23 on: October 24, 2006, 03:34:49 PM »
Hi

I have a little problem with the following entrys in my tagnavi_custom.config

Code: [Select]
%format "fmt_leastplayed"   "%d %s (by %s)" playcount title artist %limit = "100"and
Code: [Select]
"Am wenigsten gespielte Titel" -> title = "fmt_leastplayed"
When i select the entry I get a splash with "Dir Buffer is Full!" and the listing is empty.
I have already increased the max files in dir limit to 10.000 and restarted, but it didn't help.
If i remove the '%limit = "100"' it works, but then the listing wouldn't make sense anymore.

Does someone have an idea why this isn't working?

The whole tagnavi_custom.config file is in the attachement.

[attachment deleted by admin, too old]
Logged

Offline xlarge

  • Member
  • *
  • Posts: 191
Re: tagnavi.config v2.0 syntax
« Reply #24 on: October 25, 2006, 04:04:38 AM »
Quote from: Slasher on October 24, 2006, 01:56:08 PM
Quote from: xlarge's tagnavi file on October 24, 2006, 09:05:21 AM
#i wish this would work...
%format "fmt_title_artist"       "%s (%s)" title artist

Now that should work. :)

Greatness, it does work indeed!
Thank you.

Btw, I can't redefine a format constant. It seems to work like a first hit filter not a variable assign. Just for info if someone is scratching their head.

PaulJam; I see the same error as you do... Even in the uisim where i've only got 30-40 files. Is it a bug?

roolku;
The wiki doesn't seem to be updated?
http://www.rockbox.org/twiki/bin/view/Main/TagCache#tagnavi_config_v2_0_Syntax
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: tagnavi.config v2.0 syntax
« Reply #25 on: October 25, 2006, 06:14:36 AM »
Quote from: xlarge on October 25, 2006, 04:04:38 AM
Btw, I can't redefine a format constant. It seems to work like a first hit filter not a variable assign. Just for info if someone is scratching their head.

Not sure what you mean by re-define. You can have multiple definitions with different conditions. TagTree will use the first one where the condition is true (see also Wiki and Slasheri's example).

Quote
PaulJam; I see the same error as you do... Even in the uisim where i've only got 30-40 files. Is it a bug?

Looking at Slasheri's example tagnavi, the error can be suppressed by having the condition  
? playcount > "0"
at the menu item line. I don't know if this just reduces the result set to a managable size (that would contradict xlarges observation of it happening with 30-40 files) or if the error is caused by something else. Maybe Slasheri has some insight.

Quote
roolku;
The wiki doesn't seem to be updated?
http://www.rockbox.org/twiki/bin/view/Main/TagCache#tagnavi_config_v2_0_Syntax

Patience, patience. The 'multiple string tag' change came only after my last edit. Table now fixed (I am unsure about filename, length and playtime). Also, please feel free to edit the page yourself. It is a wiki after all. :)
Logged

Offline xlarge

  • Member
  • *
  • Posts: 191
Re: tagnavi.config v2.0 syntax
« Reply #26 on: October 25, 2006, 07:40:35 AM »
Aah. That's clever.

In the example we have two "fmt_title";
%format "fmt_title" "%02d. %s" tracknum title ? tracknum > "0"
%format "fmt_title" "%s" title

Wich means that if a track hasn't got tracknum or it's not bigger than 0 it shows just title.

Thanks for pointing that out!

(Yes, it is a wiki after all... :) I've got an account, not authorized yet though)
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #27 on: October 28, 2006, 05:48:14 AM »
Quote from: Slasher on October 24, 2006, 01:56:08 PM
Quote from: xlarge's tagnavi file on October 24, 2006, 09:05:21 AM
#i wish this would work...
%format "fmt_title_artist"       "%s (%s)" title artist

Now that should work. :)

FANTASTIC ;D

That really does it for me, Rockbox now officially does everything I want it to do..

I have a perfect Tag Cache start-up screen, with my cool and clear browser list, I have Runtime DB-based browsing options and I have the smart BevelledRBX WPS, courtesy of dma

Thanks to Miika Pekkarinen and roolku for writing?/committing most of the Tag Cache stuff and for keeping the Tag Cache syntax Wiki up to date respectively and to all the Rockbox developers for an outstanding product.


[attachment deleted by admin, too old]
« Last Edit: October 29, 2006, 09:44:00 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Adam

  • Developer
  • Member
  • *
  • Posts: 48
    • Halley's Comet Software
Re: tagnavi.config v2.0 syntax
« Reply #28 on: October 31, 2006, 12:41:54 AM »
I must be doing something rather stupid, I can't get any of the tagnavi_custom.config files to work with my bleeding edge build.  I had used one of the earlier ones, around when this thread started, has something broken?
I end up with either the default menu, or no menu (if I run dos2unix on the tagnavi_custom.config).
Logged

Offline xlarge

  • Member
  • *
  • Posts: 191
Re: tagnavi.config v2.0 syntax
« Reply #29 on: October 31, 2006, 02:38:47 AM »
Why don't you attach your tagnavi_custom.config and let us have a look?
Logged

  • Print
Pages: 1 [2] 3 4 ... 7
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  tagnavi.config v2.0 syntax
 

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

Page created in 0.189 seconds with 21 queries.