HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: slayerist on 2017-08-24 10:36:57

Title: Foobar artist / album artist
Post by: slayerist on 2017-08-24 10:36:57
Hello all,

I tried to search the existing topics but could not find something similar to my problem.

What i would like to see the difference between artist / album artist if those two fields are different from each other.



Please see the attached image.

Thanks in advanced,


Title: Re: Foobar artist / album artist
Post by: Porcus on 2017-08-24 12:09:36
the difference between artist / album artist if those two fields are different from each other.

This is not precisely what you asked for, but it addresses the quoted part: the built-in %track artist% remapping. (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference#.25track_artist.25)
Title: Re: Foobar artist / album artist
Post by: slayerist on 2017-08-24 12:12:18
I have no knowledge of coding but can only state my problem  :)

Thank you for the response anyway
Title: Re: Foobar artist / album artist
Post by: OoNebsoO on 2017-08-24 20:42:50
Some half solution: $if(%track artist%,$rgb(255,128,0)%album artist%,%album artist%)

(http://i.imgur.com/5ObfUMT.png)

Not sure about italic (or bold or underline either) code, and it will not deal with multivalue fields. For them we need to use "album artist" (without quotes and with no percentage signs), but then formatting isn't supported. Maybe not even $if commands...

If there's a solution, would like to know it myself too!

EDIT: Haven't used Facets in ages, but maybe that can do the job? It's DUI only though.
Title: Re: Foobar artist / album artist
Post by: slayerist on 2017-08-24 21:02:49
Thank you for effort and reply.

Using your script gave me those results.

If artist and album artitst has same values the output is ",artist"  check green rectangles

if album artist has two different values the output is "album artist1, album artist2, album artist1, album artist2"   check yellow rectangles

if album artist has more than three different values the output is "album artist1, album artist 2, album artist 3"   check pink rectangles

Please see the attached screenshot
Title: Re: Foobar artist / album artist
Post by: OoNebsoO on 2017-08-24 21:16:29
Oops, sorry, there's one parenthesis too many posted above, edited it out.
Title: Re: Foobar artist / album artist
Post by: slayerist on 2017-08-24 21:28:44
 :) Thank you very much.

Just one more last question ..how to sort album artist column alphabetically ?  :o

As you can see the album artist field with more than two diffrenet values are sorted after '50 Cents' then continued after 'xxx maniak'
Title: Re: Foobar artist / album artist
Post by: OoNebsoO on 2017-08-24 21:46:11
Filters always gave me troubles, so unfortunately, don't know. Seems it sorted together every color formatted album artist, right? But weird place to start, between 50 and 1200, would've make more sense if it started somewhere after Abhorrent...
Title: Re: Foobar artist / album artist
Post by: slayerist on 2017-08-25 08:44:04
I will continue to research. Thank you once again.
Title: Re: Foobar artist / album artist
Post by: Daeron on 2017-08-25 17:08:37
CUI Filter panels generally sort by the text they display. This includes titleformatting stuff like color coding. I've personally been abusing this with zero width spaces to force-sort certain things without giving any hint of what's going on visually.

Also you can't use titleformatting at all if you want to properly use multivalue tags (separating each artist into their own lines). There's no way to use italic or bold formatting in any way.

As others have suggested, why not just use %track artist% in one of your panels? It'll show all the tracks that are different without cluttering your view with those that you could have already selected in your Album Artist panel.
Title: Re: Foobar artist / album artist
Post by: slayerist on 2017-08-26 07:55:21
Out of the blue album artist column changed the sorting today.

I am still using the same code the OoNebsoO provided. (just changed the rgb values ?)

Code: [Select]
$if(%track artist%,$rgb(11,193,215)%album artist%,%album artist%)