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: separate library paths in folder structure view (Read 2509 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

separate library paths in folder structure view

i want to move to foobar since it has some cool features.

however one thing that annoys me and i wonder how to fix this:

i have an external hard drive with the complete library and on internal disk also some stuff (may be the same since i cpied the stuff i want to hear to laptop)

if i add both, the external and the internal musik directories then foobar mixes the contents of the directories together.

example:

drive content:
Code: [Select]
e:\Music\InterpretA\Album1
e:\Music\InterpretA\Album2
e:\Music\InterpretA\Album3
e:\Music\InterpretB\Album1

c:\Music\InterpretA\Album1
c:\Music\InterpretB\Album1
i added e:\music and c:\music to library

and in folder strucutre view foobar mixes them up to:

Code: [Select]
+- InterpretA
|  +- Album1
|  +- Album1
|  +- Album2
|  +- Album3
+- InterpretB
  +- Album1
  +- Album1

I would prefer something like:

Code: [Select]
 +-"e:\Music\"
 |  +- InterpretA
 |  |  +- Album1
 |  |  +- Album2
 |  |  +- Album3
 |  +- InterpretB
 |    +- Album1
 +-"c:\Music\"
    +- InterpretA
    |  +- Album1
    +- InterpretB
      +- Album1

is there any way to achive that?

I tried using a folder with shortcuts but they are not reccognized.
I also tried to create a folder with ntfs-junctions to the actual folders/drives that contains the musik.
That seems to slightly work but the the monitoring for changes seems not to work properly. I always have to trigger rescans manually.

any suggestions?

separate library paths in folder structure view

Reply #1
file>preferences>media library>album list.

create a new view...

Code: [Select]
$replace(%path%,\,|)


now select this new view from the album list panel.


separate library paths in folder structure view

Reply #2
file>preferences>media library>album list.

create a new view...

Code: [Select]
$replace(%path%,\,|)


now select this new view from the album list panel.


oh - nice features
thats nearly that i want except that the media libraries base path should not be split up.
(if  e:\data\mp3\ is added as music folder, this should not be split up into 3 subfolders in view)
seems that there is some "trackinfo/special field" (--> wiki) missing that contains the lib base path of the current file

separate library paths in folder structure view

Reply #3
You can manipulate the path before replacing the backslashes. For example:

Code: [Select]
$replace(%path%,C:\Music\Mp3,Music '(C:)',E:\Music\Mp3,Music '(E:)',\,|)

separate library paths in folder structure view

Reply #4
You can manipulate the path before replacing the backslashes. For example:

Code: [Select]
$replace(%path%,C:\Music\Mp3,Music '(C:)',E:\Music\Mp3,Music '(E:)',\,|)

yes thanks, thats is an obvious solution and a good work around, but it requires to change same thing on 2 different positions.

separate library paths in folder structure view

Reply #5
... but it requires to change same thing on 2 different positions.

Because it prevents the contents of the two directories from being "mixed up." There are other, more complicated ways of accomplishing the same thing but, generally speaking, the simplest solution is usually the best solution.

It could just as easily have been:

Code: [Select]
$replace(%path%,\Music\Mp3,' Music',\,|)

, but I thought that was too obvious.

Here's yet another (untested, slightly more complicated) solution:

Code: [Select]
$replace(%path%,$substr(%path%,3,$add($strstr(%path%,\Mp3),3)),' Music',\,|)


last edited to remove an extra closing parenthesis from the bottom code

separate library paths in folder structure view

Reply #6
You could try something like this:
Code: [Select]
$left(%path%,3)|$replace(%path%,$left(%path%,3),,\,|)

I have a feeling the code could be simplified, but I won't bother with it right now.

Edit: Actually that is nothing different from '$replace(%path%,\,|)', I shouldn't be doing this when I'm super tired.

separate library paths in folder structure view

Reply #7
You could try something like this:
Code: [Select]
$left(%path%,3)|$replace(%path%,$left(%path%,3),,\,|)

I have a feeling the code could be simplified, but I won't bother with it right now.

Edit: Actually that is nothing different from '$replace(%path%,\,|)', I shouldn't be doing this when I'm super tired.


there is a difference!
Code: [Select]
$left(%path%,3)|$replace(%path%,$left(%path%,3),,\,|)

prevents the first '\' (the drive separator) to be replaced.

This will work as long all library directory on first fs level.
thanks.

separate library paths in folder structure view

Reply #8
Wasn't sure whether 'C:\Music\' and 'D:\Music\' were just examples and happened to match in length, but you can adjust the two 3s to 9 or so to keep the second level intact too in that case. Detaching only the drive letter is probably a lot safer though overall.