Help - Search - Members - Calendar
Full Version: Album list panel
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
CoF666
Hello everybody, firstly sorry for my english, I'm french.
I'm using Foobar since 5-6 day, I read several different forums and I managed to obtain this
My music being divided into 3 directory (1 for Metal, 1 for Pop/Rock and the last for Singles).
I would like to be able to create 3 views for the album list panel corresponding to these 3 directory. Is it Possible ?
I looked at the code of the artist view of the album list panel and I don't know what to do, perhaps by using the directoryname as bases but I don't know how to put it.
So I ask you for your assistance to know how I can do this.
By advance thank you.
kockroach
What is your exact directory structure?

For example mine is the following:

E:\MUSIC\FLAC\ARTIST\ALBUM\TITLE.flac
E:\MUSIC\MP3\ARTIST\ALBUM\TITLE.mp3
E:\MUSIC\MP3 V4\ARTIST\ALBUM\TITLE.mp3

Edit: Added 2nd and 3rd directory paths
CoF666
My directory stucture :
I:\Singles\artist-title.mp3
J:\Musiques\artist-album (year)\title.mp3
K:\Metal\artist-album (year)\title.mp3
kockroach
Hmmm....I don't know if I can give you excatly what you need. I do not know what can be used to get a specific window for each drive. I am assuming that you want a separate tab for each drive, "I", "J", and "K"....correct?

I can use the following value string:

CODE
$directory(%_path%,3)|$directory(%_path%,2)|$directory(%_path%,1)|$num(%tracknumber%,2). %title%


This will pull out my three Music subdirectories (FLAC, MP3, and MP3 V4) on my "E" drive (I only have one drive with music), with the appropriate artist/album/title directories underneath.

I can add
CODE
$directory(%_path%,4)|

to the beginning to show the actual "MUSIC" folder, but if I add
CODE
$directory(%_path%,5)|

it will not give me the drive letter.

There is the directory structure option if you right click on one of the Album List tabs, then select view. You will see all of the options that are set in your preferences, plus a "by directory structure". This will lay everything out in one tab though.

Edit: Cleaned up post
Edit2:
I did a little more testing, and found that I could display the drive letter as a node in the Album List panel. Remember, this is based on the way my directory path is set up.

I could use the following to get nodes for the entire path, starting with the drive letter.

CODE
$directory(%_path%,6)|$directory(%_path%,4)|$directory(%_path%,3)|$directory(%_path%,2)|$directory(%_path%,1)|$num(%tracknumber%,2). %title%


This will give
CODE
All Music
-E
  -FLAC
    -Artist
      -Album
        -Title
  -MP3
    -Artist
      -Album
        -Title
  -MP3 V4
    -Artist
      -Album
        -Title


For some reason, the drive level in the path is two above the main directory, not one level above like one would think.

I hope this isn't confusing.
CoF666
Hello, yesterday and this morning, I try different way to do what I want and I find something. I 've made a view called Singles and put this code :
QUOTE
$if($strstr(%_path%,Singles),%artist% %title%)

It work fine, I've got only files from my directory Singles display.
So I try another for my Pop/Rock view, I put this :
QUOTE
$if($strstr(%_path%,Musiques),artist|[%album% ' '%date%' ']|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%))

It don't work, I've got a "syntax error in formatting string". I suspecte that the "|" must not be between "( )".
That's all my result at this moment.
RobWW
Hi.

I have been trying to solve a similar problem for a while. Luckily, I found a solution last weekend. It is not pretty, but it works.

The general problem is to restrict the album list plugin to display only a subset of the music in the database. In my case, I wanted to display only jazz music, that is, only music with the tag GENRE=Jazz. The code I found that works is:
CODE
$if($strcmp(%genre%,Jazz),$if2(%album artist%,%artist%),)|
$if($strcmp(%genre%,Jazz),'('%date%') '[%album%],)|
$if($strcmp(%genre%,Jazz),[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%),)

The key is that the comparison to limit the list must be performed for each level of the list--for each '|' separator. When the code produces a blank line, album list is smart enough to ignore it and doesn't produce a blank entry in the tree.

Hope this helps.
Rob
CoF666
RobWW, you are a great Man, you saved my foobar of a total and absolute extermination. Thank very, very much.

My Foobar

Now, I can use my album list panel like the media library of winamp, the database view is my playing list. It remain to me still some small things to be regulated but largest is done.

For those who would like to make the same thing, I use this for my Metal view
QUOTE
$if($strstr(%_path%,Métal),%artist%)|$if($strstr(%_path%,Métal),'('%date%')  '%album% )|$if($strstr(%_path%,Métal),[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%))


Thank a lot for your help.
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.