Rockbox General > Rockbox General Discussion
tagnavi.config v2.0 syntax
athatai:
Bascule,
Thanks so much. Just what I wanted.
evilnick:
Hi All,
Just wondering if there is a way yet of asking tagcache for all the artists either beginning with A or The A... in one line. I've tried:
--- Code: ---"A" -> artist ? artist ^ "A" & artist ^ "The A" -> album -> title = "fmt_strip_trk"
--- End code ---
But this means: Artist that begins with "A" AND "The A" so returns no results
and also
--- Code: ---"A" -> artist ? artist ^ "A" | artist ^ "The A" -> album -> title = "fmt_strip_trk"
--- End code ---
Which *should* mean: Artist that begins with "A" OR "The A" but this doesn't seem to work properly either.
Any advice?
roolku:
--- Quote from: evilnick on November 14, 2006, 12:06:23 PM ---Just wondering if there is a way yet of asking tagcache for all the artists either beginning with A or The A... in one line.
--- End quote ---
Not that I can think of. One could attempt something along the lines of:
"A" -> artist ? artist !^ "B" & artist !^ "C" & artist !^ "D" & artist !^ "E" & .... & artist !^ "The B" & artist !^ "The C" & artist !^ "The D" & artist !^ "The E" & .... -> title
but would run into the limit of 32 fairly quickly.
The following patch modifies the one_of (@) so that it only compares the initial portion of the string, so it would be possible to use something like:
"A" -> artist ? artist @ "A|The A" -> title = "fmt_the"
But the sorting would be so that all the "The" artists end up at the bottom. Also you would need to take care of the letter T.
"T" -> artist ? artist ^ "T" & artist !^ "The A" & artist !^ "The B" & artist !^ "The C" -> title = "fmt_the"
All very messy. It really needs a solution outside tag cache that also takes care of the other articles like a, an, der, die, das, le, la, les etc.
[attachment deleted by admin, too old]
Brownsound:
Just updated to the bleeding edge build and none of these custom tagnavi's seem to work for me, I tried V0.4 and all I get is a blank screen, any ideas? if I use the one in the first post, i see the menu but only the title selection displays anything. I have a 5G with tonight bleeding edge. Thanks.
Edit:
I just tried the fix to delete some blank lines ??? it didn't do anything, in all honesty though there's a good chance I did something wrong. I also tried clearing the settings, still no dice.
bascule:
A lot of changes have happened to the syntax since this thread was started. Try the attached one to see if it will work (it should do!).
Download and rename it to exactly tagnavi_custom.config which will require stripping the .txt and maybe any other stuff windows adds to the filename while downloading. Also watch out that Windows does not hide the extension to fool you ;)
Copy the file to your .rockbox folder on your player and reboot.
EDIT: config file re-uploaded as it was broken (BOM removed). Use the second one in the list, as I cannot delete my original attachment :(
[attachment deleted by admin, too old]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version