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
artist VS album artist, show in column album artist only if it is not the same as artist
raedxxi
post Nov 24 2012, 16:00
Post #1





Group: Members
Posts: 5
Joined: 17-September 11
Member No.: 93756



Hello magicians, I'm searching for some code line that allows me to show in a UI column (after the title of every track) the %album artist% ONLY if it is not the same as the %artist%
I'll will be happy if you find some time to light this darky road.
Go to the top of the page
+Quote Post
Daeron
post Nov 24 2012, 16:33
Post #2





Group: Members
Posts: 337
Joined: 9-October 08
Member No.: 59818



CODE
$if($meta(album artist),$if($stricmp(%album artist%,%artist%),True,False),Missing)

True = tags equal
False = tags differ
Missing = ALBUM ARTIST is missing so can't be compared

This post has been edited by Daeron: Nov 24 2012, 16:34
Go to the top of the page
+Quote Post
raedxxi
post Nov 24 2012, 17:49
Post #3





Group: Members
Posts: 5
Joined: 17-September 11
Member No.: 93756



QUOTE (Daeron @ Nov 24 2012, 09:33) *
CODE
$if($meta(album artist),$if($stricmp(%album artist%,%artist%),True,False),Missing)

True = tags equal
False = tags differ
Missing = ALBUM ARTIST is missing so can't be compared


Thanks for sharing your knowledge, the best for you.
Go to the top of the page
+Quote Post
derty2
post Nov 24 2012, 18:03
Post #4





Group: Members
Posts: 557
Joined: 5-June 11
Member No.: 91257



I think he wants to create a column in his Playlist Viewer which displays the ALBUM ARTIST tag at any list index position only if it qualifies, otherwise the list index position shows blank.
Therefore he needs to use this display code for that column:
CODE
$if($stricmp($trim($meta(album artist)),$trim($meta(artist))),,$meta(album artist))


This post has been edited by derty2: Nov 24 2012, 18:16
Go to the top of the page
+Quote Post
Daeron
post Nov 24 2012, 18:47
Post #5





Group: Members
Posts: 337
Joined: 9-October 08
Member No.: 59818



On a second thought:
CODE
[%track artist%]

Too much coding, eh?

This post has been edited by Daeron: Nov 24 2012, 18:47
Go to the top of the page
+Quote Post
raedxxi
post Nov 26 2012, 00:20
Post #6





Group: Members
Posts: 5
Joined: 17-September 11
Member No.: 93756



QUOTE (derty2 @ Nov 24 2012, 11:03) *
I think he wants to create a column in his Playlist Viewer which displays the ALBUM ARTIST tag at any list index position only if it qualifies, otherwise the list index position shows blank.
Therefore he needs to use this display code for that column:
CODE
$if($stricmp($trim($meta(album artist)),$trim($meta(artist))),,$meta(album artist))


In my column I need:
%tiltle% (and if %artist% is not equal to %album artist% then add:) - %album artist% (otherwise only is shown the %title%)

This post has been edited by raedxxi: Nov 26 2012, 00:22
Go to the top of the page
+Quote Post
Daeron
post Nov 26 2012, 00:25
Post #7





Group: Members
Posts: 337
Joined: 9-October 08
Member No.: 59818



Which means you can simply use this, as it was mentioned previously:
CODE
%title%[ - %track artist%]

Assuming you simply want to show the 'real' artist (contained within the ARTIST tag) of each track after the title in a VA (=ALBUM ARTIST) album for example. I supposed you just mixed up the two.

If not, derty2's code should have your answer.

This post has been edited by Daeron: Nov 26 2012, 00:40
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: 17th April 2014 - 05:57