Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: TAGS: Find all files that match %artist% = %album artist% (Read 1708 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

TAGS: Find all files that match %artist% = %album artist%

Hi,

I tried to figure out to find out what is the easiest way to find all files where %artist% matches %album artist% within foobar2k.

Is there any way?

Thanks,

-Chris

 

TAGS: Find all files that match %artist% = %album artist%

Reply #1
Depends on where you want the info.

%track artist% will return the artist tag when it differs from the album artist tag, but that isn't exactly what you're asking for.

You can use a title formatting/query syntax string such as the following in foobar's library search to return what you want:
Code: [Select]
"$if($stricmp($meta(artist),$meta(album artist)),true,false)" IS true


You can consult the Title Formatting Reference and Query Syntax Reference for other available options.

TAGS: Find all files that match %artist% = %album artist%

Reply #2
Thanks for the solution.

I did not know the trick with the "" usage within a query.


Depends on where you want the info.

%track artist% will return the artist tag when it differs from the album artist tag, but that isn't exactly what you're asking for.

You can use a title formatting/query syntax string such as the following in foobar's library search to return what you want:
Code: [Select]
"$if($stricmp($meta(artist),$meta(album artist)),true,false)" IS true


You can consult the Title Formatting Reference and Query Syntax Reference for other available options.