mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2025-01-01 12:46:11 +00:00
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):
|
||||
paddingsize = len(str(max))
|
||||
if paddingsize == 1:
|
||||
paddingsize = 2
|
||||
if dopad:
|
||||
return str(num).zfill(paddingsize)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue