IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Media Library Queries
questberg
post Feb 3 2013, 16:55
Post #1





Group: Members
Posts: 13
Joined: 18-October 12
Member No.: 103944



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?

This post has been edited by questberg: Feb 3 2013, 16:56
Go to the top of the page
+Quote Post
Andreasvb
post Feb 3 2013, 16:57
Post #2





Group: Members
Posts: 1337
Joined: 6-March 04
From: Sweden
Member No.: 12509



AND?


--------------------
Windows 8.1u1 Pro x64 Media Center // foobar2000 1.3.3
Go to the top of the page
+Quote Post
Porcus
post Feb 3 2013, 16:58
Post #3





Group: Members
Posts: 1842
Joined: 30-November 06
Member No.: 38207



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.)

This post has been edited by Porcus: Feb 3 2013, 17:00


--------------------
One day in the Year of the Fox came a time remembered well
Go to the top of the page
+Quote Post
questberg
post Feb 3 2013, 16:59
Post #4





Group: Members
Posts: 13
Joined: 18-October 12
Member No.: 103944



QUOTE (Andreasvb @ Feb 3 2013, 17:57) *
AND?

Do you mean I should use AND or specify my problem?
Go to the top of the page
+Quote Post
Andreasvb
post Feb 3 2013, 17:00
Post #5





Group: Members
Posts: 1337
Joined: 6-March 04
From: Sweden
Member No.: 12509



Use it.

http://wiki.hydrogenaudio.org/index.php?ti...00:Query_syntax [ Foobar2000:Query syntax - Hydrogenaudio Knowledgebase ]


--------------------
Windows 8.1u1 Pro x64 Media Center // foobar2000 1.3.3
Go to the top of the page
+Quote Post
questberg
post Feb 3 2013, 17:01
Post #6





Group: Members
Posts: 13
Joined: 18-October 12
Member No.: 103944



QUOTE (Porcus @ Feb 3 2013, 17:58) *
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
Go to the top of the page
+Quote Post
questberg
post Feb 3 2013, 17:11
Post #7





Group: Members
Posts: 13
Joined: 18-October 12
Member No.: 103944



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
Go to the top of the page
+Quote Post
BenB
post Feb 3 2013, 17:31
Post #8





Group: Members
Posts: 730
Joined: 17-April 12
Member No.: 98921



To find where the artist and album artist tags differ, you can use this:
CODE
%track artist% PRESENT

To find where they don't:
CODE
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
"$if($strstr(%artist%,%album artist%),true,false)" IS true


edited for clarification

This post has been edited by BenB: Feb 3 2013, 17:38
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th August 2014 - 05:11