Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Album List Panel filter/views help (Read 6392 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Album List Panel filter/views help

Hi,

I'm using:
foobar 1.1.7
Columns UI
Album List Panel 0.3.5 (View by Directory Structure)
etc...

When I want to create a playlist of all music and shuffle it, I usually filter out certain tracks based on tag values.  For example:
XMAS MISSING
That way, any Xmas music (that is properly tagged) doesn't show up in the album list view, and doesn't get added to the playlist.

Is there any way to duplicate the "By Directory Structure" view and combine it with filter(s)?  That way, I wouldn't have to type in my filter(s) every time I start foobar.  The "Directory Structure" view code doesn't show up in the settings window; I assume it's hard set in the component.

Thanks,
MrM




Album List Panel filter/views help

Reply #1
Is there any way to duplicate the "By Directory Structure" view and combine it with filter(s)?

Yes, sort of. Though, "The directory structure view is not based on titleformatting" code.

There are many forum topics like the one linked above that give clues about how to simulate a "directory structure" view. What will work best for you might depend on your own directory structuring, which we do not know.



To filter album list views, I often use $stricmp() within an $if() function. For example, if you have Xmas albums kept within a directory named "Xmas" :

$if($stricmp($directory(%path%,2),xmas),,<preferred.view.pattern.here>)

Another example, to filter ALBUM TITLE tags that contain the string "Xmas" :

$if($stricmp($strstr(%album%,Xmas),0),<preferred.view.pattern.here>,)

* be aware that $strstr() is case sensitive (but can be worked-around with additional code [exa: $lower()] )

Album List Panel filter/views help

Reply #2
Good info and link, trout.  Thanks.

I was able to do what I wanted with something like this:
Code: [Select]
$if($or($meta(XMAS),$meta(NOSHUFFLEPLAY)),,$replace(%path%,E:\Audio\,,\,|))

Might tweak it more in the future.

Thanks again!

Album List Panel filter/views help

Reply #3
Ah, your custom tags sure did help to make it simple! (missed that clue from the orig post)

Cheers

Album List Panel filter/views help

Reply #4
Hmmm..while this does filter the tracks out of the view in the album list panel, when I right-click on "All Music", which is the root of the tree, and choose "Add To Playlist", all tracks are added, even those which don't appear in the view.  I have to manually type in the filter to get them to be excluded... and that brings me back to where I started.

It seems odd that tracks that aren't in the view would be added to the playlist.

Album List Panel filter/views help

Reply #5
as you're using columns UI, replace the album list panel with "library tree". it's a much better component and allows you to save multiple views with filtering.

http://foo2k.chottu.net/#lt



 

Album List Panel filter/views help

Reply #6
thanks, marc2003.  testing it out now, looks good.