Skip to main content

Topic: artist VS album artist (Read 1326 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • raedxxi
  • [*]
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.

  • Daeron
  • [*][*][*][*][*]
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
  • Last Edit: 24 November, 2012, 10:34:28 AM by Daeron

  • raedxxi
  • [*]
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.

  • derty2
  • [*][*][*][*][*]
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))
  • Last Edit: 24 November, 2012, 12:16:13 PM by derty2

  • Daeron
  • [*][*][*][*][*]
artist VS album artist
Reply #4
On a second thought:
Code: [Select]
[%track artist%]

Too much coding, eh?
  • Last Edit: 24 November, 2012, 12:47:33 PM by Daeron

  • raedxxi
  • [*]
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%)
  • Last Edit: 25 November, 2012, 06:22:05 PM by raedxxi

  • Daeron
  • [*][*][*][*][*]
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.
  • Last Edit: 25 November, 2012, 06:40:20 PM by Daeron