padTracks now forces padding for albums with less than 10 tracks

This fixes #14
This commit is contained in:
RemixDev 2020-06-02 11:55:31 +02:00
parent 6e01f38765
commit a60fd5e195
1 changed files with 2 additions and 0 deletions

View File

@ -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: