Rockbox General > Rockbox General Discussion

tagnavi.config v2.0 syntax

<< < (13/20) > >>

dip:

--- Quote from: bascule on February 09, 2007, 05:01:20 AM ---I tried:

%format "fmt_title" "%02d. %s" tracknum title %strip = "3" ? tracknum > "0"

in the simulator and it worked perfectly...

--- End quote ---
I tried the above  in the simulator(copy and pasted it just to be sure not to miss any character) but it does not remove the leading tracknumber in the title list. Is there any option which must be additionally set?

I amended the format string to be sure that this string is used (included the constant word "test" and the artist tag), rebuilt the database and the word "test" and the artist were shown but still also the leading tracknumber.

Any ideas... ???

roolku:

--- Quote from: dip on February 09, 2007, 08:05:36 AM ---
--- Quote from: bascule on February 09, 2007, 05:01:20 AM ---I tried:

%format "fmt_title" "%02d. %s" tracknum title %strip = "3" ? tracknum > "0"

in the simulator and it worked perfectly...

--- End quote ---
I tried the above  in the simulator(copy and pasted it just to be sure not to miss any character) but it does not remove the leading tracknumber in the title list. Is there any option which must be additionally set?

--- End quote ---

It is a limitation (or bug?) that all conditional format strings with the same name must use the same %strip value. So I assume you have another fmt_title in your tagnavi.config file. The workaround is to use %strip="3" in all your format strings, but have some meaningless dummy characters to help you with the sorting.

For example in a similar situation I use:

%format "fmt_chrono_cond_year" "ZZZZ%02d%s" tracknum title %strip = "6" ? year = "0"
%format "fmt_chrono_cond_year" "%04d%02d%04d %s" year tracknum year title %strip = "6"

bascule:
There is no other option required.

It's a long shot, but do your actual title tags contain the tracknumber?

Scratch that...

I think the problem may be that the default tagnavi.config file contains more than one 'fmt_title' entry as per this snippet from the Wiki:


--- Quote ---It is possible to use the same fmt_identifier with different definitions. The first line where the condition is true is applied, so it is suggested to use an unconditional line as a "catch all" at the end.
--- End quote ---

Change the line to:

%format "my_fmt" "%02d. %s" tracknum title %strip = "3" ? tracknum > "0"

and then change the format used in the query:

"All Artists"   -> artist -> album  -> title = "my_fmt"

Bother - roolku beat me to it :P

EDIT: But they are slightly different solutions to the same problem. Who goes? You decide!

dip:
@roolku and bascule:

I had my own format definitions but I had included the %strip parameter only in one of them. So roolku you are right, as soon as I included the %strip in the other one it works! Thanks a lot, I never had found that.


One further question to the rockbox experts  ;D

When I select the format string is not used for displaying the title. Is that a bug or can I change that?

roolku:

--- Quote from: dip on February 09, 2007, 09:43:49 AM ---@roolku:
The reason that I use the tracknumber but strip it is that I want have the tracks sorted by tracknumber but no to see the tracknumber.

--- End quote ---

Yes, I realised that - hence my edit. ;)


--- Quote from: dip on February 09, 2007, 09:43:49 AM ---When I select  < All tracks >  the format string is not used for displaying the title. Is that a bug or can I change that?

--- End quote ---

I think it is intentional as it often doesn't make sense to use it. (i.e. why would you want to listen to the first tracks of all your albums first then followed by all the second tracks etc. But I agree in some situations it would be nice.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version