Author Topic: Virtual Device question  (Read 521 times)

Gendji

  • Full Member
  • ***
  • Posts: 139
MB Version used: 3.6.9285 P.

I am trying to figure out how to change the numbering/naming when syncing to a virtual device.

The way it is setup now is •use naming template:
music files: Music\<Album Artist>\<Album>\<Disc-Track#> <Title>
under synchronise settings with:
disc-track# format: 0 |- |00 under Tags (2) - Configure Fields - formatting.

This results in 001-ArtistName-Title for example: 001-Queen-Radio Ga Ga.flac, 002-Queen-Bohemian Rhapsody.flac etc.

My question is, how do i change the numbering to 0001 (extra zero) and get spaces between the - used, so it looks like:

0001 - Queen - Radio Ga Ga.flac, 0002 - Queen - Bohemian Rhapsody.flac?

Thanks.

Pickles7853

  • Full Member
  • ***
  • Posts: 164
Hey Gendji!
I apologize in advance as this is likely to not be very helpful in fixing your issue.
Mainly because I do not sync to any virtual devices so I have not used this portion of MusicBee before.
But I wanted to point out something that, at least to me, does not make logical sense.

Quote
disc-track# format: 0 |- |00
When using the tag <Disc-Track#> the format above shows the total length with padding.  So with two zeros in track format a "1" would convert to "01".

Quote
Music\<Album Artist>\<Album>\<Disc-Track#> <Title>
Template shows it is using <Disc-Track#> <Title>

So I am unsure of how you are getting "002-Queen-Bohemian Rhapsody.flac" with the above settings.
I would have thought it would be in the form of the templates/ settings outlined above...
1-02 Bohemian Rhapsody.flac

EG: "002-Queen-Bohemian Rhapsody.flac" is missing disk# with dash, has incorrect track formatting, and is adding in additional dashes and <artist> tag.
To me it appears that the template(s) are not being applied when syncing... perhaps (under Library settings) you have auto-organise media files enabled and under "Organisation..." you are using a different template?

Or perhaps your flac files are not tagged properly.  Maybe they are missing the tags for <disk> & <track> and the <title> is "002-Queen-Bohemian Rhapsody"

Yeah yeah... I know organise and organisation are misspelled by US standards.  That's the way it is spelled in settings dialog which I think is the preferred spelling in British English.
Last Edit: June 16, 2025, 05:52:49 PM by Pickles7853

tjinc

  • Sr. Member
  • ****
  • Posts: 845
Quote
Music\<Album Artist>\<Album>\<Disc-Track#> <Title>
Template shows it is using <Disc-Track#> <Title>

So I am unsure of how you are getting "002-Queen-Bohemian Rhapsody.flac" with the above settings.
I would have thought it would be in the form of the templates/ settings outlined above...
1-02 Bohemian Rhapsody.flac
Yes, you are absolutely right here but my suspicion is that Gendji is not telling us the whole story.

Filenames with the format 002-Queen-Bohemian Rhapsody.flac are created when saving playlist files into a single folder - the '002' number will be the playlist (#) number padded to 3 digits. This is used so as to maintain track order within the playlist and to ensure that there are no duplicate filenames created.

So Gendji , I am guessing that you are also using the option 'create a sub-folder for each playlist and its tracks'. If this is the case then I am afraid that you are out of luck as I do not believe that there are any configuration options for the filename here.

If this is not the case then can you post a screenshot of your device settings.

Gendji

  • Full Member
  • ***
  • Posts: 139
First of all, thank you both for helping!

and indeed:

Quote
So Gendji , I am guessing that you are also using the option 'create a sub-folder for each playlist and its tracks'. If this is the case then I am afraid that you are out of luck as I do not believe that there are any configuration options for the filename here.

you are absolutely right :-[

I thought i was thorough enough explaining what i was doing, but clearly i wasn't. Sorry for that!

I have indeed a separate folder per playlist with everything numbered in that folder as described. My old car radio doesn't handle playlists well but has no problem reading a folder and following the numbering so, it kinda acts as a playlist. I hope i make sense.

The reason i was asking this is, that some playlists are getting close to 999 and i do not know what happens then. So i thought maybe it's possible to add a zero somehow.

Thanks!

tjinc

  • Sr. Member
  • ****
  • Posts: 845
I have indeed a separate folder per playlist with everything numbered in that folder as described. My old car radio doesn't handle playlists well but has no problem reading a folder and following the numbering so, it kinda acts as a playlist. I hope i make sense.
This makes perfect sense and I am guessing that this is exactly what this feature is for.

The reason i was asking this is, that some playlists are getting close to 999 and i do not know what happens then. So i thought maybe it's possible to add a zero somehow.
I honestly don't know what happens but I would expect that the four digits will be trimmed to three so the numbers will start to be repeated (which will mess up your playlist). Best to try it and see though just in case....

Gendji

  • Full Member
  • ***
  • Posts: 139
I honestly don't know what happens but I would expect that the four digits will be trimmed to three so the numbers will start to be repeated (which will mess up your playlist). Best to try it and see though just in case....
Yeah indeed. I will do some testing with a separate playlist to see what happens. Based on the outcome maybe Steven can add a zero ;)

Gendji

  • Full Member
  • ***
  • Posts: 139
Good news :),

I tested with a playlist containing 1075 songs and as it turns out, the "counting" continues after 999 with 1001,1002 etc.

So for example: 999-Queen-Bohemian Rhapsody, 1001-Queen-Radio Ga Ga.flac etc.

This is great and no need for any changes in that regard as it turns out.