INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Rename file from properties doesn't pad zeros correctly  (Read 1580 times)

jgourd

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 310
  • Geurilla Recording At Its Best
Rename file from properties doesn't pad zeros correctly
« on: February 03, 2007, 10:39:51 am »

I complained about this once before. If you have an album with more than 100 tracks (Audiobook, sound effects, etc...) and you use the rename files from properties feature it only pads the zeros as if there was no such a thing as a three digit track number.

For instance, an audiobook with 150 files needs to pad two zeros in the track number. 001, 002, ... 011, 012 etc.
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Rename file from properties doesn't pad zeros correctly
« Reply #1 on: February 03, 2007, 01:10:37 pm »

The problem is not limited to audio files. For example, image collections may need more numbers than 100.

A previous discussion:

http://yabb.jriver.com/interact/index.php?topic=27807.0

Besides the add "n" number zero padding option I requested in that thread I would like to be able to add user defined fields that work exactly like the Track Number field including the automatic numbering. Then it would be possible to use alternative numbering systems without changing the existing track numbers.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42028
  • Shoes gone again!
Re: Rename file from properties doesn't pad zeros correctly
« Reply #2 on: February 04, 2007, 05:11:10 pm »

We need to make this easier, but you can workaround this now by using an expression:

This will show the track number always using three digits:
If(IsEqual([Track #], 10, 3), 00[Track #], If(IsEqual([Track #], 100, 3), 0[Track #], [Track #]))

A simple function like PadNumber([Track #], 3) or something would help.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42028
  • Shoes gone again!
Re: Rename file from properties doesn't pad zeros correctly
« Reply #3 on: February 06, 2007, 02:30:05 pm »

Build 164 and later adds this:

NEW: Added a function PadNumber(...) to allow forcing numbers to a certain number of digits. (for example, when renaming, use PadNumber([Track #], 3) to get 001, 002, 003, etc.)
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up