INTERACT FORUM

Please login or register.

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

Author Topic: Custom Track# Field - Filename Copy Issue  (Read 1406 times)

wig

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 750
Custom Track# Field - Filename Copy Issue
« on: November 19, 2009, 05:01:31 pm »

I've created a custom field to use as a secondary track number field. I'm using it to create 'Best Of' albums as I discussed here.

My problem now is that when I copy files using the custom field as the track #, the single digit track numbers don't contain the leading 0 that accompany the default track # tag.

So instead of:

The Aquabats - Best of The Aquabats - 01 - Dear Spike.mp3

I get

The Aquabats - Best of The Aquabats - 1 - Dear Spike.mp3

This is a pain in the butt for several reasons which I'm sure many of you already are familiar with  :P. Is there any way to make my custom track # field include the leading 0?

Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Logged
The opinions I express represent my own folly.

wig

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Custom Track# Field - Filename Copy Issue
« Reply #2 on: November 19, 2009, 05:31:18 pm »

Thanks for the quick response, MrC.

PadNumber([track #],2) did the trick for me
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Custom Track# Field - Filename Copy Issue
« Reply #3 on: November 19, 2009, 05:57:33 pm »

Here is a practical example if the explanation in the linked page isn't clear to everyone:

[Artist] - [Album] - PadNumber([Custom #],2) - [Name]

-- creates a name like "The Aquabats - Best of The Aquabats - 01 - Dear Spike.mp3"

In this case the name of the library field is Custom #.


Alternatively you could try:

[Artist] - [Album] - PadNumber(counter(1,1),2) - [Name]

"counter" can create the numbers from the list order. If you have one of your "best of" compilations in a playlist in the desired track order the string should be able to create the numbers without any custom field.


EDIT

The counter function may not always work as expected. Marko has explained that and provides a solution here: http://yabb.jriver.com/interact/index.php?topic=50622.msg346031#msg346031
Also this thread might be useful: http://yabb.jriver.com/interact/index.php?topic=48659.0
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755
Pages: [1]   Go Up