Some questions regarding query syntax |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
Some questions regarding query syntax |
Jun 25 2012, 07:09
Post
#1
|
|
|
Group: Members Posts: 11 Joined: 21-June 11 Member No.: 91727 |
So, I've read through this page: http://wiki.hydrogenaudio.org/index.php?ti...00:Query_syntax and have a few questions.
What's the difference between typing "artist" or " %artist " ? and The document says "The user cannot access technical information (such as codec specifications) or component-provided information (playback statistics and such) through title-formatting." why does it say I can't use playback statistics? I know damn well I can type %play_count% IS 10 and it will work. thanks |
|
|
|
Jun 25 2012, 07:57
Post
#2
|
|
|
Group: Members Posts: 74 Joined: 8-September 11 Member No.: 93574 |
What's the difference between typing "artist" or " %artist " ? artist will give you the content of the artist tag. If this tag is empty, you'll get "?" %artist% will look at artist tag, and if it's emtpy, it will than look at "album artist", "composer" and "performer" tags (Title formatting reference) QUOTE The document says "The user cannot access technical information (such as codec specifications) or component-provided information (playback statistics and such) through title-formatting." why does it say I can't use playback statistics? I know damn well I can type %play_count% IS 10 and it will work. Dunno. Maybe it's outdated |
|
|
|
Jun 25 2012, 08:59
Post
#3
|
|
|
Group: Super Moderator Posts: 4347 Joined: 23-June 06 Member No.: 32180 |
I edited that to note an exception for foo_playcount, and I made some other edits and re-arrangements that I hope improve the Notes. I do think that perhaps the sub-section on title-formatting, or maybe even the entirety of the Notes, may benefit from being moved and/or integrated into the rest of the article. However, that’s a job for another day!
|
|
|
|
Jun 25 2012, 09:08
Post
#4
|
|
|
Group: Members Posts: 11 Joined: 21-June 11 Member No.: 91727 |
But aren't all playback statistics able to use queries? I use them all the time.
I do agree the article needs to be edited so that an amateur is more able to understand. This post has been edited by timmytucker718: Jun 25 2012, 09:09 |
|
|
|
Jun 25 2012, 09:21
Post
#5
|
|
|
Group: Members Posts: 74 Joined: 8-September 11 Member No.: 93574 |
foo_playcout = playback statistics, foo_playcount is just the "internal" component name.
There are unofficial "playback statistics" components too but those can't be querried. |
|
|
|
Jun 25 2012, 13:20
Post
#6
|
|
|
Group: Members Posts: 11 Joined: 21-June 11 Member No.: 91727 |
|
|
|
|
Jun 25 2012, 22:53
Post
#7
|
|
|
Group: Members Posts: 11 Joined: 21-June 11 Member No.: 91727 |
One more question....
How come you have to do %play_count% IS 10. Why can't you do just play_count IS 10. What is the logic beyond requiring the %? And more importantly, why does the wiki show an example "last_modified DURING LAST 2 WEEKS’’" That query only works for me with percent signs. |
|
|
|
Jun 30 2012, 04:42
Post
#8
|
|
![]() Group: Super Moderator Posts: 1813 Joined: 24-July 02 Member No.: 2776 |
QUOTE Why can't you do just play_count IS 10. Because play_count is not a metadata field. For other information, title formatting (e.g., %play_count%) has to be used. QUOTE And more importantly, why does the wiki show an example "last_modified DURING LAST 2 WEEKS’’" That example is wrong. Use the help file that ships with foobar2000 instead, available from "?" buttons next to search fields. Maybe the wiki page should be removed, there is no point in maintaining this at two locations. -------------------- foobar2000.audiohq.de
|
|
|
|
Jun 30 2012, 10:24
Post
#9
|
|
|
Group: Super Moderator Posts: 4347 Joined: 23-June 06 Member No.: 32180 |
In any case, we should definitely keep me away from the page. :S Turns out I removed the percentage symbols in the past, presumably thinking – for whatever unknown reason – that was correct.
I’ve just updated the page with this correction and some other things from Frank’s other recent post about query syntax, but I would really appreciate Frank or someone else with more knowledge checking it over for any other glaring errors/failures. Or just scrapping it outright, as you’ve already suggested. These things might well be best left to the professionals, rather than being open to dunces like me. This post has been edited by db1989: Jun 30 2012, 10:25 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 12:21 |