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: artist VS album artist (Read 2207 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

artist VS album artist

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.

artist VS album artist

Reply #1
Code: [Select]
$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

artist VS album artist

Reply #2
Code: [Select]
$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.

 

artist VS album artist

Reply #3
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: [Select]
$if($stricmp($trim($meta(album artist)),$trim($meta(artist))),,$meta(album artist))

artist VS album artist

Reply #4
On a second thought:
Code: [Select]
[%track artist%]

Too much coding, eh?

artist VS album artist

Reply #5
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: [Select]
$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%)

artist VS album artist

Reply #6
Which means you can simply use this, as it was mentioned previously:
Code: [Select]
%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.