Help - Search - Members - Calendar
Full Version: Album list preset
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
gob
i made a little script for the album list today which i think is pretty sweet. it basically sorts my music by: "Decade \ Genre \ Artist \ Album \ Title"

it goes from 1900's-2000's, then last year's, and then this year's music.
the only problem being i would like my music from this year and last year to show up in the 2000's tree as well as this/last year's tree. i cant seem to get the tracks to show up under 2 different trees at the same time thou. im not sure if it is possible, but it would be great if it is, then i can call this script complete.

here is my code for this age script:

CODE
// set the current year below!
$puts(cyear,2005)

$if($and(%date%,%artist%,%title%,%genre%),

$puts(d1,$left(%date%,1))
$puts(d3,$substr(%date%,3,3))
$puts(d4,$right(%date%,1))

$if($stricmp($get(d1),1),
$puts(age,19$get(d3)0''s))

$if($stricmp($get(d1),2),
$puts(age,2000''s))

$if($and($stricmp($get(d1),2),$stricmp($get(d4),$right($get(cyear),1))),
$puts(age,This year''s))

$if($and(
$stricmp($get(d1),2),
$stricmp($get(d4),$sub($right($get(cyear),1),1))),
$puts(age,Last year''s))

$get(age)
)
|
$if($and(%date%,%artist%,%title%,%genre%),%genre%)
|
$if($and(%date%,%artist%,%title%,%genre%),%artist%)
|
$if($and(%date%,%artist%,%title%,%genre%),
$if($and(%album%,$not(%various%)),%album%,● singles))
|
$if($and(%date%,%artist%,%title%,%genre%),
$if($and(%album%,$not(%various%)),%tracknumber%. %title%,%title%))


here are my other album list scripts for those who like my work. they make use of a %various% tag to determine v/a albums, so make sure to change that to %albumartist% if you have to.

By album:
CODE
$if($and(%artist%,%title%),
$if(%various%,● Various Artists,%artist%))
|
$if($and(%artist%,%title%),$if(%album%,%album%,● singles))
|
$if($and(%artist%,%title%),
$if(%album%,%tracknumber%. %title%,%title%))

By rating:
CODE
$if($and(%rating%,%artist%,%title%,$not($strcmp(%rating%,0))),$repeat( ♫,%rating%))
|
$if($and(%rating%,%artist%,%title%,%genre%,$not($strcmp(%rating%,0))),%genre%)
|
$if($and(%rating%,%artist%,%title%,%genre%,$not($strcmp(%rating%,0))),%artist%)
|
$if($and(%rating%,%artist%,%title%,%genre%,$not($strcmp(%rating%,0))),%title%)

And by codec:
CODE
%__codec%
|
$ifgreater(%__bitrate%,319,$puts(brgroup,320+ kbps),
$ifgreater(%__bitrate%,255,$puts(brgroup,256-319 kbps),
$ifgreater(%__bitrate%,191,$puts(brgroup,192-255 kbps),
$ifgreater(%__bitrate%,127,$puts(brgroup,128-191 kbps),
$puts(brgroup, 0-127 kbps)))))
$get(brgroup)
|
$if(%artist%,%artist%)
|
$if(%artist%,%title%)
Neil K
OK firstly thanks very much, the album preset is awesome, and I have been trying to modify it a little for my purposes. I've managed most things, but one thing I want is for it to put stuff under ● Singles if the directory name is "=SINGLES=", but I can't quite get it to work. Heres my code:

CODE

$if($and(%artist%,%title%),
$if(%various%,● Various Artists,$if($stricmp($substr(%artist%,1,4),'The '),$substr(%artist%,5,$len(%artist%))', The',%artist%)))
|
$if($and(%artist%,%title%),$if($and(%album%,$strcmp(%_directoryname%,'=SINGLES=')),● Singles,$if(%album%,$if(%various%,%album%,['['%date%']'] %album%),● Singles)))
topdownjimmy
doesn't this do the same thing with much less code?:

CODE
$if($strcmp(%date%,2005),'This year',$if($strcmp(%date%,2004),'Last year',$if(%date%,$left(%date%,3)0s,'['unknown year']')))|$if2(%genre%,'['unknown genre']')|$if2(%artist%,'['unknown artist']')|$if2(%album%,'['unknown album']')|[%tracknumber%. ]$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.