Fixed overwrite padding size

This commit is contained in:
RemixDev 2020-09-30 20:27:19 +02:00
parent 050b25471f
commit 22e024af39
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
__version__ = "1.5.4" __version__ = "1.5.5"

View File

@ -55,7 +55,7 @@ def pad(num, max, settings):
if int(settings['paddingSize']) == 0: if int(settings['paddingSize']) == 0:
paddingSize = len(str(max)) paddingSize = len(str(max))
else: else:
paddingSize = 10 ** (int(settings['paddingSize']) - 1) paddingSize = len(str(10 ** (int(settings['paddingSize']) - 1)))
if paddingSize == 1: if paddingSize == 1:
paddingSize = 2 paddingSize = 2
if settings['padTracks']: if settings['padTracks']:

View File

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup( setup(
name="deemix", name="deemix",
version="1.5.4", version="1.5.5",
description="A barebone deezer downloader library", description="A barebone deezer downloader library",
long_description=README, long_description=README,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",