getmusicbee.com

Support => Portable Devices => Topic started by: a2a on June 28, 2017, 12:46:07 PM

Title: Syncing to Device - Folder Path Query
Post by: a2a on June 28, 2017, 12:46:07 PM
My music is located as per follows:

- D:\Music\Albums\Soundstracks\<Album Name>\<Album>
- D:\Music\Albums\Artists\<Artist Name>\<Album>


I prefer to Sync using the following Musicbee media storage path: preserve folders and filenames

On a device I'm sync'ing to, I'm syncing to a memory card inside a folder called "Music".

Is there a way to sync using 'preserving folders and filenames' but to remove the "Albums" folder that is being created on the device to help keep the device tidy - rather than have just one folder inside a music folder before getting to the crux on the content?

For example, this path on my laptop: D:\Music\Albums\Soundtracks\Minions Movie Songs

I want to sync as follows to my device: D:\Music\Soundtracks\Minions Movie Songs

Essentially removing the '\Albums\' part of the directory in how the device syncs?

Thank you :)
Title: Re: Syncing to Device - Folder Path Query
Post by: redwing on June 28, 2017, 01:45:10 PM
Tick "use naming templates" and try entering the following template to "music files" box:

Code
$Split(<Path>,\,4)\$Split(<Path>,\,5)\$Split(<Path>,\,6)\<filename>
Title: Re: Syncing to Device - Folder Path Query
Post by: a2a on June 28, 2017, 04:17:32 PM
That looks great - thanks so much for quickly helping!

I've put the code in and checked out the preview, it looks like it will do the trick - haven't yet synced.

How does that code work?

Thanks again :)
Title: Re: Syncing to Device - Folder Path Query
Post by: redwing on June 28, 2017, 05:20:41 PM
$Split function splits a string by a delimiter and returns n-th substring.

So for a string of your path "D:\Music\Albums\Soundstracks\<Album Name>\<Album>"

$Split(<Path>,\,1) returns D:
$Split(<Path>,\,2) returns Music
$Split(<Path>,\,3) returns Albums
$Split(<Path>,\,4) returns Soundstracks

and so forth. Finally it needs a filename at the end.

It's tricky to handle backspace character with functions when it comes to file organizer, but your path structure was a bit simple.
Let me know if it actually worked for you.
Title: Re: Syncing to Device - Folder Path Query
Post by: a2a on July 09, 2017, 09:12:37 PM
Redwig, apologies for the delay in responding :s

Just wanted to get back to say - thank you very much for offering your help - I do appreciate it! :)

In terms of reporting back, it works to an extent, but I had a few random issues - probably due to the way some things are in my collection. I think to 'err on the side of caution' it's best I just stick with "preserving file names" :$

Your help and expertise is gratefully received nonetheless, thanks again :)
Title: Re: Syncing to Device - Folder Path Query
Post by: redwing on July 10, 2017, 11:41:06 AM
No problem. Sorry to hear it didn't work out as you wanted.