HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Bak0 on 2012-08-14 13:38:01

Title: Use default album/track artist display style but with custom fields?
Post by: Bak0 on 2012-08-14 13:38:01
Hey Folks,

I use foobar since ages and I always managed to make it do what I want, which is having a nicely sorted music library.

I just bought an Ipod and since this stupid thing doesnt sort by album artist, I did the following:

write all %artist% (that is track artist% to a new field called %trackartist% then write all %album artist% to %artist% so that my ipod doesnt look messy.
Now, I want to reproduce Foobars old behaviour in my playlist view, which has following (relevant) default columns:

Artist/album | Title / track artist

The latter one gives the track title and then checks if %album artist% and %artist% are different and if so gives %artist%, if not, doesnt do anything.
Now of course, they are always the same, I want it to compare %album artist% and my new field %trackartist%.

Can someone tell me how to do this?
___________________________________________________
something along the lines of:
$strcmp(s1,s2)
Performs a case-sensitive comparison of the strings s1 and s2.

or :
NOT %album artist% IS %trackartist%

maybe??

Thanks for your help and maybe this even helped some people in dealing with their ipod, after googling I found some people had this issue;)



Title: Use default album/track artist display style but with custom fields?
Post by: Case on 2012-08-14 14:12:15
No need to mess with scripting or to use wrong artist tags. Those iDevices sort by ARTISTSORTORDER and ALBUMSORTORDER if they exist, so just write Album Artist into the former field. I use the latter field to sort albums in release order by writing %date% - %album% in it.
Title: Use default album/track artist display style but with custom fields?
Post by: ruebe on 2012-08-14 14:19:13
assuming your artist field is never blank, i.e. you never only set the trackartist tag:
artist | title / $if($strcmp(artist,trackartist),,trackartist)
Title: Use default album/track artist display style but with custom fields?
Post by: Bak0 on 2012-08-14 17:50:26
Thanks for the quick replies !

No need to mess with scripting or to use wrong artist tags. Those iDevices sort by ARTISTSORTORDER and ALBUMSORTORDER

Wow, ok. I didnt know that! All of them do? I have a classic 5th generation one...
that of course is the best solution.


artist | title / $if($strcmp(artist,trackartist),,trackartist)

Cheers for that mate, I prefer the above solution, but hey one day I'll use those lines starting with a $...