Help - Search - Members - Calendar
Full Version: Album List --> Sort by Rating?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
rfarris
So I've added the following string to the Album List views box:

rating|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)

Which gets me a listing of files that have a "rating" tag, divided by rating. But I'd also like to have a category in the same list for files that have no rating tag.

In other words, I have:

CODE

- All music (5)
  + 1 (8)
  + 2 (15)
  + 3 (49)
  + 4 (26)
  + 5 (45)

And what I want is:

- All music (6)
  + none (117)
  + 1 (8)
  + 2 (15)
  + 3 (49)
  + 4 (26)
  + 5 (45)


Any suggestions?
Ruby
This should work:
CODE
$if2(%rating%,none)|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)
rfarris
QUOTE(Ruby @ Jul 14 2004, 07:47 PM)
This should work:
CODE
$if2(%rating%,none)|[%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)

*


Woohoo! Thanks, Ruby.

Do you happen to know what the pipe-signs do? Where is that documented?
Ruby
QUOTE(rfarris @ Jul 15 2004, 08:36 PM)
Woohoo!  Thanks, Ruby.

Do you happen to know what the pipe-signs do?  Where is that documented?
*


You're welcome. smile.gif

I don't know any documentation about the |-signs. I'm not sure what they really are, aside from doing the "grouping" for the album list. I've seen them used in sorting strings, but I don't know if they have a special meaning or just used as a random separator character.
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.