[Question] Folder View of the new ReFacets in Foobar2000 2.0 beta 8
I just tried out the new beta version and I'm having an issue with the folder view.
In my original layout, there are three columns. And the first two columns are for folders: first column displays all folders under my libraries; second columns displays the folders in the selected folder from first column. As shown in the following structure:
Folders | Subfolders | Album
After transferring to the new beta version, when I choose to group by folders, both columns only shows all the subfolders so that both are showing the same content.
In Preference -> Media Library -> ReFacets -> Views, there is an item Folder with Pattern value $directory(%path%). Can I change it back by modifing it?
Posted Sep 21, 2022, 1:47 AM UTC
Yes, but it depends on consistency of your folder structure and how many folders deep the actual music files are, because the $directory() function is relative to the folder the music file is in.
Here is a folder map to demonstrate -
So if ALL your music files are exactly 3 folders deep, that makes it easy, just use the $directory numbers as above. (Add a second 'Folder' column in Preferences)
However if you have music files that are additional folders deep (perhaps using a "Disc 1" folder?), then there is the problem, because that folder is #1 as well and everything gets mixed up.
In that case you could use an $if function such as this (adjusting the $directory numbers for each column) -
^ $if music file is in folder name that begins "Disc ", display level 3 folder, else display level 2 folder.
... but not so easy without knowing exactly the folder names and levels. And if music files are in several different levels, it becomes more difficult.
(This way, using an $if, is quite a backwards way of solving it. The other way would be to cut up the %path% using string functions and start at the top most folder, but that would take some work...)
Thank you so much!
My library is very complicated, mixed with different levels of folders, varying from one to three levels. In addition, sometimes a 3-level folder has tracks in level 2. So I need to sort it out.
But there is another problem: When I select a parent folder Folder 1 from first column, the second/third column doesn't show the subfolders in Folder 1, but only Folder 1 itself. And so in the third column, it shows all content in all subfolders when grouped by anything but folders.
Just in case I was not entirely clear: you need two (or more) "Folder" columns in Preferences with different patterns each. Folder 1 should have the highest set of $directory numbers -
Folder 1 -
Folder 2 -
However this $if way would not work anyway if tracks are in different levels with no common folder name (or tags) to test which level they should appear under.