padTracks now forces padding for albums with less than 10 tracks
This fixes #14
This commit is contained in:
parent
6e01f38765
commit
a60fd5e195
|
@ -42,6 +42,8 @@ def antiDot(string):
|
||||||
|
|
||||||
def pad(num, max, dopad=True):
|
def pad(num, max, dopad=True):
|
||||||
paddingsize = len(str(max))
|
paddingsize = len(str(max))
|
||||||
|
if paddingsize == 1:
|
||||||
|
paddingsize = 2
|
||||||
if dopad:
|
if dopad:
|
||||||
return str(num).zfill(paddingsize)
|
return str(num).zfill(paddingsize)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue