Skip to main content

Topic: Media Library Queries (Read 855 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • questberg
  • [*]
Media Library Queries
Is it possible to make a search query which has a regular expression on both sides of a comparison, like:

%artist% HAS %album artist%
%album% IS %title%

when I tried something like this, the right side was interpreted as string according to the query syntax help
I want it to take the information from the tags obviously
Is there a plugin I need for this or am I doing something wrong?
  • Last Edit: 03 February, 2013, 10:56:32 AM by questberg

  • Andreasvb
  • [*][*][*][*][*]
Media Library Queries
Reply #1
AND?
Windows 10 Pro x64 // foobar2000 1.3.10

  • Porcus
  • [*][*][*][*][*]
Media Library Queries
Reply #2
You need to build a bit more sophisticated queries. For matching artist and album artist: http://www.hydrogenaudio.org/forums/index....showtopic=98286 . The substring function is $substr(s,m,n)
(I am obviously too clumsy.)
  • Last Edit: 03 February, 2013, 11:00:41 AM by Porcus

  • questberg
  • [*]
Media Library Queries
Reply #3
AND?

Do you mean I should use AND or specify my problem?

  • Andreasvb
  • [*][*][*][*][*]
Media Library Queries
Reply #4
Use it.

http://wiki.hydrogenaudio.org/index.php?ti...00:Query_syntax [ Foobar2000:Query syntax - Hydrogenaudio Knowledgebase ]
Windows 10 Pro x64 // foobar2000 1.3.10

  • questberg
  • [*]
Media Library Queries
Reply #5
You need to build a bit more sophisticated queries. For matching artist and album artist: http://www.hydrogenaudio.org/forums/index....showtopic=98286 . The substring function is $substr(s,m,n)
(I am obviously too clumsy.)

ok thanks I can go on from there

  • questberg
  • [*]
Media Library Queries
Reply #6
In case anyone needs it, I used this to filter for tracks with differing artist/album artist:

"$if($stricmp(%artist%,%album artist%),true,false)" IS false

  • BenB
  • [*][*][*][*][*]
Media Library Queries
Reply #7
To find where the artist and album artist tags differ, you can use this:
Code: [Select]
%track artist% PRESENT

To find where they don't:
Code: [Select]
NOT %track artist% PRESENT

Note that both tags must be present for them to work.

And an equivalent to this:
Quote
%artist% HAS %album artist%

is this:
Code: [Select]
"$if($strstr(%artist%,%album artist%),true,false)" IS true


edited for clarification
  • Last Edit: 03 February, 2013, 11:38:14 AM by BenB