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
Please help me get rid of “Various Artists”, show track artist instead, [TOS #6: was “Please help with syntax..”]
post Jan 13 2013, 06:13
Post #1

Group: Members
Posts: 3
Joined: 14-October 12
Member No.: 103843

Hi! I want to get rid of 'various artists' in my playlists so I've made the custom column to display the artist track if it is VA:
$if([%artist%]="Various Artists",%track artist%,%artist%)
But the thing always displays the track artist. Please tell me why.

Go to the top of the page
+Quote Post
post Jan 13 2013, 07:23
Post #2

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

The artist tag shouldn't be Various Artists. It should only be used in the album artist tag.

%track artist% returns the value of the artist tag when the artist tag differs from the album artist tag. Both tags have to be present for it to work. In other words, %track artist% and %artist% return the same value with the only difference being that the former is conditional upon the presence of a differing album artist tag.

As to your string, the format would be (with correctly formatted tags): $if($stricmp(%album artist%,Various Artists),%track artist%,%artist%), but it's pointless. It essentially says "if the album artist tag value is Various Artists, display the artist tag, otherwise display the artist tag." All you need in this instance is simply %artist%.

If your goal is to only display the artist tag on Various Artists albums, then you could use $if($stricmp(%album artist%,Various Artists),%artist%). You could also use $if($stricmp(%album artist%,Various Artists),%track artist%) but this needlessly causes foobar to compare the album artist and artist tags.

I suggest learning title formatting.

This post has been edited by BenB: Jan 13 2013, 07:49
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 November 2015 - 15:24