Skip to main content
Topic: media library & folder structure (Read 560 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

media library & folder structure

my archive consists of 2 libraries, lossless and lossy, which is then divided by genres, artists and albums.

i would like to keep this modular structure in foobar's media library as well, while accessing the album list (f1):

lossless
lossy

right now, this is only possible by monitoring a parent folder containing these 2 subfolders, thus making it impossible to refresh them separately.

the problem: when monitoring these two folders independently (2 entries in media library), the (identical) genre subfolders are getting mixed up in album list, leaving no way to differentiate between them.

Re: media library & folder structure

Reply #1
resulting album list (hitting f1) will just look like this:

genre1
genre2
genre3
...

sorry, seems i can not edit my initial post anymore.

Re: media library & folder structure

Reply #2
Hi there,

Not sure what your Album List views look like, but perhaps add $info(encoding)| to the beginning of each view? (File menu > Preferences > Media Library > Album List > under Views)

(Or $caps($info(encoding))| if you want it capitalized)

That should divide the top level tree into Lossless and Lossy. You should only have to monitor the one parent folder.

Cheers

Re: media library & folder structure

Reply #3
Hi there,

Not sure what your Album List views look like
hi anamorphic, thanks for taking time to reply!

my current album list view looks like in first post (by folder structure).

lossless
lossy


Quote
, but perhaps add $info(encoding)| to the beginning of each view? (File menu > Preferences > Media Library > Album List > under Views)

(Or $caps($info(encoding))| if you want it capitalized)

That should divide the top level tree into Lossless and Lossy. You should only have to monitor the one parent folder.

Cheers
you mean this code will show the codec (behind?) folders? like

genre1 [flac]
genre2 [ogg]

i don' think this will work, because the genre subfolders are identical on both ends and lossless and lossy contents gets mixed up within genre1 etc when monitoring these 2 folders separately in media library.

now what i actually try to accomplish, is a way to monitor these 2 libraries separately (rescan on demand) while at the same time maintaining my album list view.

i wished the parent-folder would also be taken into account in media library > music folder. right now, only its containig folders are reflected.

boy, i hope this is not too cryptic and you see what i am up to ;)

Re: media library & folder structure

Reply #4
my current album list view looks like in first post (by folder structure).
Ah, "by folder structure" is not one of the customizable views, although you could replicate it...

Quote
you mean this code will show the codec (behind?) folders? like

genre1 [flac]
genre2 [ogg]
No, the encoding tech info field is either 'lossless' or 'lossy' for each track. Part of the track metadata, added by the encoder. (You can see it if you right-click a track > Properties > Details tab > under General). So adding that to a view would divide tracks like this...

Lossless
- Genre
-- Artist
--- Album
Lossy
- Genre
-- Artist
--- Album
(etc)

Quote
i don' think this will work, because the genre subfolders are identical on both ends and lossless and lossy contents gets mixed up [...]
The question at the center of the trouble is, why are you viewing "by folder structure"? Are your files not tagged well enough to view by tags? (genre, artist, etc)

It would work though because it adds a tree level (based on tags, not folders) and filters the contents underneath - i.e. only lossless tracks show up under lossless.

Here is the default "by genre" view with the addition of encoding -
Code: [Select]
$caps($info(encoding))|%<genre>%|[%album artist% - ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

Try it at least and see how well your files are tagged ;)

Otherwise you could make a hybrid tag / folder -based view using $directory(%path%,1) and so forth, though it would take some testing... I'm not sure how best to replicate "by folder structure". It depends how many folders you use for multi-disc albums, file organization, etc.

Cheers

Re: media library & folder structure

Reply #5
The question at the center of the trouble is, why are you viewing "by folder structure"? Are your files not tagged well enough to view by tags? (genre, artist, etc)
well, sort of. my files are all tagged properly, but ever since starting my archive, i used the genre-tag to refine the style. today, i would probably do things differently...

besides, i very much like folder structure view, as it reflects the actual state of contents (1:1).

Quote
It would work though because it adds a tree level (based on tags, not folders) and filters the contents underneath - i.e. only lossless tracks show up under lossless.

Here is the default "by genre" view with the addition of encoding -
Code: [Select]
$caps($info(encoding))|%<genre>%|[%album artist% - ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

Try it at least and see how well your files are tagged ;)
now i have tested the code, it actually works the way you describe it (though it is a long, non-identical list), but crashes quite frequently (using wine here).

this is also the reason why i need to scan the library on demand, as monitoring folders sometimes is not on par with the changes made to the filestructure, so i turned it off.

Re: media library & folder structure

Reply #6
Hi again,

I wonder why that string would crash under Wine? Perhaps if foobar is not caching the $info field into memory, so it has to access every file, or something... (No idea really).

I mentioned trying $directory(%path%,1) in a view string, but something like this might be better to replicate "by folder structure" view -

Code: [Select]
$replace($directory_path($substr(%path%,4,999)),\,|)|%filename%

^ This lists all folder names after the drive letter ("D:\"). Change the 4 if necessary depending how many characters deep before the parent music folders. (I wonder if it might also crash).

I might as well also mention your alternatives to Album List...

For a tree view with considerably more options, Library Tree (script by WilB) with Spider Monkey Panel. (See screenshots in discussion thread). It has an easy filter menu that can switch between lossless and lossy and other views that you might find useful.

For a column view, Facets. (See documentation for screens). Perhaps you can set the first column to $info(encoding) which then filters the remaining columns. Or just use the similar filter button on the search toolbar for lossless and lossy and other views.

Cheers 8)

Re: media library & folder structure

Reply #7
thank you, i really appreciate your solo effort here ;)

Hi again,

I wonder why that string would crash under Wine? Perhaps if foobar is not caching the $info field into memory, so it has to access every file, or something... (No idea really).

I mentioned trying $directory(%path%,1) in a view string, but something like this might be better to replicate "by folder structure" view -
perhaps i got you wrong, but it does not work and is showing me nothing.

Quote
Code: [Select]
$replace($directory_path($substr(%path%,4,999)),\,|)|%filename%
now this actually works and mimics "folder structure" (even shows the parent folder), but i have tested with my old media library only. so, is this supposed to work in combination with a setup like the one below - selecting folders lossless & lossy separaterly for monitoring?


archive
-lossless
--genre1
---artist
----album
-lossy
--genre1
---artist
----album

Quote
I might as well also mention your alternatives to Album List...

For a tree view with considerably more options, Library Tree (script by WilB) with Spider Monkey Panel. (See screenshots in discussion thread). It has an easy filter menu that can switch between lossless and lossy and other views that you might find useful.

For a column view, Facets. (See documentation for screens). Perhaps you can set the first column to $info(encoding) which then filters the remaining columns. Or just use the similar filter button on the search toolbar for lossless and lossy and other views.

Cheers 8)
that is good to know but tbh, i try to keep my fb setup as default as possible so to minimize crashes under wine. the less plugins installed, the better and more stable foobar will run :)

Re: media library & folder structure

Reply #8
perhaps i got you wrong, but it does not work and is showing me nothing.
No it was not a complete string. I was just thinking out loud / prompting you to experiment a bit... :)  (Have a look at Help menu > Title Formatting Help, or the wiki Reference, to figure out this stuff).

Quote
Code: [Select]
$replace($directory_path($substr(%path%,4,999)),\,|)|%filename%
now this actually works and mimics "folder structure" (even shows the parent folder), but i have tested with my old media library only. so, is this supposed to work in combination with a setup like the one below - selecting folders lossless & lossy separaterly for monitoring?
It should(? But I cannot test it, not having the same folder structure). Even if only monitoring the last folder, it shows every folder in the %path%, so I assume it shows separate contents of each level.

As I said you can exclude the top folder ("archive") by changing the 4 to 12 (number of characters from left of %path%). Example illustration -

Code: [Select]
D:\archive\lossless\genre1\artist\album\track.flac
-----------|
           12th character

You could also replace %filename% with %filename_ext% to include extension (".flac"). (I forgot about that).

Quote
that is good to know but tbh, i try to keep my fb setup as default as possible so to minimize crashes under wine. the less plugins installed, the better and more stable foobar will run :)
Ah, too bad, takes the fun out of foobar ;)

Cheers

Re: media library & folder structure

Reply #9
i am so excited, will test this soon, but i have no doubt it will work.

(i guess i ll leave out %filename_ext%, better have a speedy view ;)

well, thank you for that, you have been a great help, mate!

Re: media library & folder structure

Reply #10
You could also just specify the paths like this:
Code: [Select]
$replace(%path%,'C:\pathtomusic','Library 1','D:\mylibrary2','Library 2',\,|)

 
SimplePortal 1.0.0 RC1 © 2008-2019