Support and General Use > Audio Playback, Database and Playlists
Creating custom Tagcache query?
Slasher:
Please try with the following syntax:
--- Code: ---"Non-Alphabetical B&C" -> artist ? artist !^ "B" & artist !^ "C" -> album -> title = "%02d %s" tracknum title
--- End code ---
That's because it's possible to include different tags in one search clause.
bascule:
D'oh!
Of course. It's so simple and if I'd not had 'code-blindness' when I looked at roolku's original, I would have seen how it worked. Thanks very much.
That's solved the 'T vs The' problem.
It would also fix the other problem, but I've come up with a neater solution by using less than:
--- Quote from: bascule link=topic=6866.msg54399#msg54399 ---I'm trying to add a line to display all artists beginning with non-alphabetic characters (911, 50 Cent etc.). I don't just want to look for artists beginning with 0 to 9, as that may exclude some bizarre entries beginning with other characters.
--- End quote ---
--- Code: ---"Non-alpha" -> artist ? artist < "A" -> album -> title = "%02d %s" tracknum title
--- End code ---
This certainly works on numerics, have not yet created a test file for non-alphanumerics such as # or ! ... ;)
roolku:
--- Quote from: Slasher on October 14, 2006, 08:20:06 AM ---Please try with the following syntax:
--- Code: ---"Non-Alphabetical B&C" -> artist ? artist !^ "B" & artist !^ "C" -> album -> title = "%02d %s" tracknum title
--- End code ---
That's because it's possible to include different tags in one search clause.
--- End quote ---
Unfortunately this still doesn't work for the case in question, as there is a limit (I think 16) on how many clauses one can have and there are 26 letters. And I guess Amicon wouldn't like another size increase...
--- Quote from: bascule on October 14, 2006, 12:34:23 PM ---
--- Quote from: bascule link=topic=6866.msg54399#msg54399 ---I'm trying to add a line to display all artists beginning with non-alphabetic characters (911, 50 Cent etc.). I don't just want to look for artists beginning with 0 to 9, as that may exclude some bizarre entries beginning with other characters.
--- End quote ---
--- Code: ---"Non-alpha" -> artist ? artist < "A" -> album -> title = "%02d %s" tracknum title
--- End code ---
This certainly works on numerics, have not yet created a test file for non-alphanumerics such as # or ! ... ;)
--- End quote ---
That is exactly the case I created patch #6098 for (which Slasheri kindly comitted). It works with punctuation and so on, but it doesn't catch various unicode characters. For ASCII (and most European languages) you should be okay.
Maybe we could start sharing our tagnavi.config files so we can get inspiration from each other. I have included my current one here.
[attachment deleted by admin, too old]
bascule:
--- Quote from: roolku ---Unfortunately this still doesn't work for the case in question, as there is a limit (I think 16) on how many clauses one can have and there are 26 letters.
--- End quote ---
So, I presume that's different from the (recently increased) overall 128-byte limit for a query string?
I'm hoping you can clear this up. Can you have 16 128-byte clauses, or 16 clauses with a total length of 128 bytes?
And what bit of the line exactly constitutes the 'query clause'?
Anyway, currently I'm happy with the < "A" solution :D
roolku:
--- Quote from: bascule on October 15, 2006, 01:25:36 PM ---So, I presume that's different from the (recently increased) overall 128-byte limit for a query string?
--- End quote ---
The 128 byte limit is for individual strings (the things between ")
--- Quote ---I'm hoping you can clear this up. Can you have 16 128-byte clauses, or 16 clauses with a total length of 128 bytes?
--- End quote ---
16 clauses with 128 bytes before and 128 bytes after the operator
--- Quote ---And what bit of the line exactly constitutes the 'query clause'?
--- End quote ---
"tag" "operator" "constant string"
You can have several of these seperated by & (and). They are used as conditions to reduce the result set.
But this might all be out of date with Slasheri's latest update. I'll will change the Wiki when I am back from my holidays.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version