QUOTE(j-bo @ Oct 25 2003, 11:37 AM)
Ah, well - I guess no1s trying this out then? Do most foobar users use the album list much? I found the default settings pretty strange (but then I do have quite a bit of music on my PC)
Anyway, I fixed a few bugs and wrote a custom sort, so that names like "The Foo" are sorted as "Foo", but still listed as "The Foo" - like in media player. Before I had too many artists starting with 'the' all bunched together.
FooBar warns that custom sorts are slow, but I've noticed no difference. Copy/Paste these into Components/AlbumList in preferences.
hierarchy:
$caps( $if2( $trim( $if2(%album artist% , %artist%)) , unknown artist ))|$if2( $trim( %album% ) , non-album ) $if( %albumsubtitle% , - %albumsubtitle% ,)|$if(%cdno%,CD%cdno%,) $if2($num(%tracknumber%,2), - ) $if2($trim(%title%),untitled %_filename_ext%) $if( %album artist% , $if( $stricmp( $trim( %album artist% ) , $trim(%artist%) ) , , - $trim(%artist%) ) , ) $if(%title%,$char(0040)$ext(%_path%)$char(0041),)
sort:
$if($stricmp($left($trim($if2(%album artist%,%artist%)),4),the ),$right($trim($if2(%album artist%,%artist%)),$sub($len($trim($if2(%album artist%,%artist%))),4)),$trim($if2(%album artist%,%artist%)))|$if(%album%,$if($stricmp($left(%album%,4),the ),$right(%album%,$sub($len(%album%),4)),%album%),zzzzz)|[$num(%cdno%,2)]$num(%tracknumber%,3)[%title%]$if(%artist%,%artist%,zzzzzzz)%_filename_ext%
i like the string... here is mine...
it is specially made to sort out the CDs with Various Artist rather than just one artist:
CODE
$if($stricmp($left(%_directoryname%,15),Various Artists),Various Artists,$if($stricmp($left(%_directoryname%,3),VA-),Various Artists,$if($stricmp($left(%_directoryname%,3),VA ),Various Artists,Single Artist)))|[$if($stricmp($left(%_directoryname%,15),Various Artists),%album%,$if($stricmp($left(%_directoryname%,3),VA-),%album%,$if($stricmp($left(%_directoryname%,3),VA ),%album%,%artist%)))]|[$if($stricmp($left(%_directoryname%,15),Various Artists),[$num(%tracknumber%,2). %title%],$if($stricmp($left(%_directoryname%,3),VA-),[$num(%tracknumber%,2). %title%],$if($stricmp($left(%_directoryname%,3),VA ),[$num(%tracknumber%,2). %title%],%album%)))]|$if($stricmp($left(%_directoryname%,15),Various Artists),,$if($stricmp($left(%_directoryname%,3),VA-),,$if($stricmp($left(%_directoryname%,3),VA ),,[$num(%tracknumber%,2). %title%])))
It detectes if a CD is various artists from the directory name (if it begins with VA, Various Artists, VA-, or Various Artists-).
You can use this without a sort string pretty much.
I do like the idea of sorting "The..." artists as if they did not have the "The" in front, but still displaying them with the "The"