HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: raedxxi on 2012-11-24 15:00:22

Title: artist VS album artist
Post by: raedxxi on 2012-11-24 15:00:22
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.
Title: artist VS album artist
Post by: Daeron on 2012-11-24 15:33:00
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
Title: artist VS album artist
Post by: raedxxi on 2012-11-24 16:49:43
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.
Title: artist VS album artist
Post by: derty2 on 2012-11-24 17:03:05
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))
Title: artist VS album artist
Post by: Daeron on 2012-11-24 17:47:02
On a second thought:
Code: [Select]
[%track artist%]

Too much coding, eh?
Title: artist VS album artist
Post by: raedxxi on 2012-11-25 23:20:53
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%)
Title: artist VS album artist
Post by: Daeron on 2012-11-25 23:25:24
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.