HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Sickley on 2009-04-20 09:43:28

Title: album list sort by rating
Post by: Sickley on 2009-04-20 09:43:28
my knowledge of foobar's scripting is pretty limited so i wasnt sure how to do this. all i would like to know is if (and how) there is a way to sort the library viewer by ratings greater than a certain number. i already have it setup to sort by rating (%rating%) but would like to sort it by say all songs greater than 1, or 2, or 3, or 4 rating.

thanks for the help
Title: album list sort by rating
Post by: Sickley on 2009-09-03 10:28:14
post has been up over a few months and no replies?? so im guessing this cant be done then? or are there just no people left on this board?
Title: album list sort by rating
Post by: 2E7AH on 2009-09-03 10:58:45
I think, neither, and BTW for few months you should already know the answer

Can you explain what you want to accomplish?
If you want i.e. to sort only those with rating greater then 3 try something like this:

[font= "Lucida Console"]$ifgreater(%rating%, 3, %rating%, DEFAULT SORTING STRING)[/font][/size]

[edit] well, that is for library viewer playlist, and it seem that you want that for album list element branching, so similarly (i.e. album view):

[font= "Lucida Console"]$ifgreater(%rating%, 3, %rating% |,)%album%[ '['%album artist%']']|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%[/font][/size]