INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Windows => Topic started by: DJ_Hazelwood on August 29, 2019, 11:43:17 am

Title: Formatting of track number
Post by: DJ_Hazelwood on August 29, 2019, 11:43:17 am
Hi!

I noticed some strange behaviour with track numbers:

- when I rename a file within MC and I use [Track #] then I get the track numbers with 2 digits (a leading zero for tracks 1 to 9), that's exactly what I want
- when I do a sync to a handheld (into a directory on the PC in my case) and I use the same expression [Track #], then I don't get the leading zeros  ?

I'm not sure if I'm missing something or if this function has changed ...

Thanks for help  :)


Title: Re: Formatting of track number
Post by: MGD_King on August 29, 2019, 01:18:15 pm
- when I do a sync to a handheld (into a directory on the PC in my case) and I use the same expression [Track #], then I don't get the leading zeros  ?

I noticed the same thing when I synced to a USB device. I had to wind up converting the files to a temp directory and then manually copying them over to the USB drive.
Title: Re: Formatting of track number
Post by: lepa on August 29, 2019, 02:22:07 pm
I guess in Handheld rename rule you need to use padnumber() function
So filename rule could be e.g. something like this: PadNumber([Track #],2) - [Name]

2 meaning minimum two digit presentation...
Title: Re: Formatting of track number
Post by: DJ_Hazelwood on August 30, 2019, 12:32:53 am
That's exactly what I wanted, works perfect  ;D

Thanks!