Help - Search - Members - Calendar
Full Version: Sort By "Album Artist", If it Exists
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
WellPaidScientist
I was hoping one of you foobar wizards could help me with something. I would like to get the album list panel to use the itunes "album artist" tag (which is really called "band") instead of artist for tracks which have that tag, and otherwise use the normal artist tag to sort. My current string is the following:

artist|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)
Yotsuya
Try this:
[$if2(%band%,%album artist%)]|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)
WellPaidScientist
QUOTE(Yotsuya @ Feb 3 2007, 14:54) *

Try this:
[$if2(%band%,%album artist%)]|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)

Something's wrong there I think, it just groups everything under "All Artists"

I found the following by searching the forums, and it works. It's pretty long though, and it does take an extra second to refresh the list.

$caps2($if($stricmp($left($if3(%band%,%album artist%,%artist%,@skip),4),'the '),$right($if3(%band%,%album artist%,%artist%,@skip),$sub($len($if3(%band%,%album artist%,%artist%,@skip)),4)),$if3(%band%,%album artist%,%artist%,@skip)))|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)
WellPaidScientist
QUOTE(Yotsuya @ Feb 3 2007, 14:54) *

Try this:
[$if2(%band%,%album artist%)]|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)


I figured it out, in the first $if2 statement, you have "%album artist%" - it should just be "%artist%." This code does just what I wanted and is fast. Thanks for the help.

[$if2(%band%,%artist%)]|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.