Author Topic: Virtual Tag for Folders  (Read 1135 times)

wasp

  • Jr. Member
  • **
  • Posts: 62
In my music library I have folders with different 'folder depths'

For example, I have a:

N:\Music\EDM\Mainstage\Artist X\ Alias A\ Albums & EPs
N:\Music\EDM\Progressive\Artist X\Albums & EPs

The virtual tag: $Split(<Path>,\,6) will bring out the albums of

N:\Music\EDM\Progressive\Artist X\Albums & EPs

but not

N:\Music\EDM\Mainstage\Artist X\ Alias A\ Albums & EPs




However, if I use the virtual tag: $Split(<Path>,\,7)

it will bring out the albums of

N:\Music\EDM\Mainstage\Artist X\ Alias A\ Albums & EPs

but not

N:\Music\EDM\Progressive\Artist X\Albums & EPs



Should this be the case?


[As a side note, I am also using the: $Split(<Path>,\,5) syntax for a another virtual tag, to show the folders of all artists. However, even though I have different depth of folders of artists - all folders come up,  as I used the number 5 to indicate the maximum depth level where I have an artist folder residing].

hiccup

  • Sr. Member
  • ****
  • Posts: 7790
For example, I have a:

N:\Music\EDM\Mainstage\Artist X\ Alias A\ Albums & EPs

How did the spaces get in the path?
A manual typo? Or, if they are actually there, Windows will consider them illegal and perhaps strange things happen?

wasp

  • Jr. Member
  • **
  • Posts: 62

hiccup

  • Sr. Member
  • ****
  • Posts: 7790
That's actually a manual typo.

Ok, just checking since I tested it, and MusicBee will indeed create illegal folder names starting with a space if you have them in your organisation rules.

hiccup

  • Sr. Member
  • ****
  • Posts: 7790
So you have $Split(<Path>,\,6) not working to your expectation, but $Split(<Path>,\,5) working o.k.
That's weird.

Could it be you are using the first one in a location that displays folders, and the second one in a location to display files?
That would be expected behaviour then I think.

wasp

  • Jr. Member
  • **
  • Posts: 62
Please disregard the last point,

Quote
[As a side note, I am also using the: $Split(<Path>,\,5) syntax for a another virtual tag, to show the folders of all artists. However, even though I have different depth of folders of artists - all folders come up,  as I used the number 5 to indicate the maximum depth level where I have an artist folder residing].

I shouldn't have written that as I think it confuses even more the issue I'm having.



Basically, if I was to sum up the the main issue is that:

the virtual tag: $Split(<Path>,\,7)

it will bring out the albums of

N:\Music\EDM\Mainstage\Artist X\ Alias A\Albums & EPs

but not

N:\Music\EDM\Progressive\Artist X\Albums & EPs


which I don't think should be the case, right?

hiccup

  • Sr. Member
  • ****
  • Posts: 7790
Did you read what I said about folders vs. files?
I'm out of other suggestions.

wasp

  • Jr. Member
  • **
  • Posts: 62
Thank you. You pointed me in the right direction.