Help - Search - Members - Calendar
Full Version: Album list order and the word "the"
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
iSleipnir
Under my album list I have everything alphabetical by artist but bands that start with "the" like THE Beatles, or THE Skatalites get throw under the letter T. How would I change this so that the album list excludes the word "the", and places these bands under b, or s, etc.?
user posted image

Thanks for any help.

-Slep
Frank Bicking
In your album list pattern, replace %artist% by
CODE
$if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4)),%artist%)
iSleipnir
Wait, where is the "album list pattern"? I see under components "Album list" and "Album list panel"
iSleipnir
Can anyone help me out? I'm not sure where to type in the string. Can someone be very specific? Looking at the menues I'm seeing a lot of places where that code could fit and I have no idea where to put it. Thanks

-Slep

Here are the two places I see where I could put code, but I still don't know where to put the info even in the pannels.
user posted image
rectangle
QUOTE(iSleipnir @ Mar 5 2006, 01:58 PM)
Can anyone help me out? I'm not sure where to type in the string. Can someone be very specific? Looking at the menues I'm seeing a lot of places where that code could fit and I have no idea where to put it. Thanks

-Slep

Here are the two places I see where I could put code, but I still don't know where to put the info even in the pannels.



Double click 'By Artist:' in "Album list" and/or "Album list panel" and paste it there.
iSleipnir
I pasted in the code into both places and it's still not working. Any ideas on what might be wrong?
david_dl
QUOTE(iSleipnir @ Mar 5 2006, 07:24 PM)
I pasted in the code into both places and it's still not working. Any ideas on what might be wrong?
*



Check "Use custom sorting" and paste it there.
Edit: you'll probably want to sort by more than just artist. This is what i use:
CODE
$if($stricmp($left($put(temp,%ARTIST%),4),The ),$right($get(temp),$sub($len($get(temp)),4)),$get(temp)) - %DATE% - %ALBUM% - $num(%DISCNUMBER%,3) - $num(%TRACKNUMBER%,3) - %TITLE%
rectangle
QUOTE(iSleipnir @ Mar 5 2006, 04:24 PM)
I pasted in the code into both places and it's still not working. Any ideas on what might be wrong?
*



From the screen shot above you are using the Album list panel. Have you right clicked somewhere on the panel and clicked 'Refesh tree'?

By the way, I use:
QUOTE
$if($stricmp($left(%artist%,4),'the '),$substr(%artist%,5,$len(%artist%))' (The)',%artist%)|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)
iSleipnir
I got it working using the custom sorting option. Thanks for all of the help and replies!

-Slep
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.