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.
$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
$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.
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:
$if($stricmp($trim($meta(album artist)),$trim($meta(artist))),,$meta(album artist))
On a second thought:
[%track artist%]
Too much coding, eh?
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:
$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%)
Which means you can simply use this, as it was mentioned previously:
%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.