Skip to content

Commit

Permalink
Zero pad discNumber and discTotal in templates like track_number
Browse files Browse the repository at this point in the history
  • Loading branch information
eharris committed Sep 15, 2022
1 parent 6ad681a commit e0a4f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whipper/common/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def getPath(self, outdir, template, mbdiscid, metadata, track_number=None):
v['B'] = metadata.barcode
v['C'] = metadata.catalogNumber
v['c'] = metadata.releaseDisambCmt
v['M'] = metadata.discTotal
v['N'] = metadata.discNumber
v['M'] = '%02d' % (metadata.discTotal or 0)
v['N'] = '%02d' % (metadata.discNumber or 1)
v['T'] = metadata.mediumTitle
if metadata.releaseType:
v['R'] = metadata.releaseType
Expand Down

0 comments on commit e0a4f36

Please sign in to comment.