Help - Search - Members - Calendar
Full Version: Album List View
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
nishster7
A sample expression for an "Album List" view is:
[%album artist% - ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

I was wondering if I can apply a filter while making a view. I want to display files only from a certain drive in a view. Can I do something like:

[_path% HAS "C:\"]|[%album artist% - ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

to only display the files from the C: drive in that view?

Thanks.
foosion
No, unfortunately for you that is not possible.
Frank Bicking
Please try this:

CODE
$if($strcmp($left(%path%,3),C:\),[%album artist% - ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%)
nishster7
That worked. thank you!

Do you know how I can have the filter field show up in the album list panel that I add to the sidebar?
Frank Bicking
That's not possible. The Columns UI developer (musicmusic) would have to add it.
nishster7
Also, do you know the code for the "by directory structure" view?

Thanks.
kockroach
I have my music organized by x:\music\%codec%\%artist%\%album%\%title%

With the playlist tree component I can use:
CODE
$directory(%_path%,3)|$directory(%_path%,2)|$directory(%_path%,1)|%title%
to pull out the true directory structure. That should work in the album list panel as well.
Frank Bicking
The directory structure view doesn't make use of titleformatting but is hardcoded for performance reasons.

You can emulate it with:

CODE
$replace(%path%,\,|)

To remove the drive letter from the root use this (replace C: with your drive):

CODE
$replace(%path%,\,|,C:\,)

The results may differ from the original directory view if you have added more than one "Music Folder" to the "Media Library" preferences.
kockroach
QUOTE(Frank Bicking @ Jan 4 2007, 21:29) *

The directory structure view doesn't make use of titleformatting but is hardcoded for performance reasons.

But that wouldn't keep one from creating a new "View" that gives a directory based view.
Frank Bicking
Of course it wouldn't.

I thought that was pretty obvious since both of use provided code to achieve a similar view.

Sorry if my preliminary remark should have indicated otherwise.
nishster7
Thanks.
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.