Author Topic: Problem with syncing folder structure  (Read 342 times)

UsbYy

  • Newbie
  • *
  • Posts: 2
So, i have this folder structure to my music - D:\Mus\Music\*. '*' - is an artist/albums etc.
I need this path structure in storage in whitch i syncing music - artist/album/etc. In other words sturcture without folders \Mus and \Music.
I tried to enter this at "music files" line:

Code
$Split(<Path>,Music\,2)<filename>

That is what i've got in a preview tab, it looks just right:



After syncing album i have only music without previous folders in syncing storage:



I hope experts will tell me whats wrong, cose problem looks is easy to solve, but i didn't find this at forum. Thanks in advance.
Last Edit: April 13, 2024, 04:14:15 PM by UsbYy

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1081
  • Heal The World
...cose problem looks is easy to solve, but i didn't find this at forum.
It sounds easy, but if it's what I think it is, then this is actually one of the hardest MusicBee puzzles I've personally had to solve thus far.
A link to an identical problem from the past: https://getmusicbee.com/forum/index.php?topic=37129.msg204206#msg204206
What makes this kind of puzzle particularly hard to solve is that what the template editor shows is not what goes on behind the scenes.

Your formula is trying to match a backslash, and the template editor is indeed picking it up.
However, the actual sync settings are not because the backslash is an illegal filename character.

By default, it's replaced with a whitespace.
So internally, MusicBee only recognizes a whitespace, and not the backslash (contrary to what the template editor would lead you to believe).

A screenshot of your sync preview will show this, I think.
Anyway, just follow the instructions in that linked post to replace the backslash with a more unique character than a whitespace.
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.

UsbYy

  • Newbie
  • *
  • Posts: 2
So much thanks!
If somebody have this problem too, here is the decision for this case.
1. Go to Tools > Organise Files > Filename Char Mapping and replace backslash ('\') to equal sign ('=')
2. Insert this code to "music files" line, where 'Music' is a folder, from which we need all folders to the right.

Code
$Split($Replace(<Path>,=,\),Music\,2)<Filename>

Result:

Last Edit: April 13, 2024, 10:54:49 PM by UsbYy

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1081
  • Heal The World
Cool beans. Happy syncing, Mr. UsbYy.
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.