Disc format

I am using $disc-$track for my paths. This comes out as 01-01. So 2 digits, with a leading zero. Is there a way to have the disc have a single digit and no leading zero?

I think I have never ever seen release with more than 9 discs. At least I don’t have one and never will.

Having no disc number, if there is only one disc would be interesting, too. I saw this How can I zero disc tag if disctotal is 1? but it seems like that is not possible. Has this changed?


Ha! I got this working with the inline plugin.

  disc_and_track: u'%i-%02i' % (disc, track) if disctotal > 1 else u'%02i' % (track)

Great! There is also a relevant FAQ:

Do you mean


? While I can now see the overlap, the relevance from the FAQ entry wasn’t too obvious.
I figured it out while digging through the plugins :slight_smile:

1 Like