From 22e024af3949103d69d7679ea4de9bd192c5b0b4 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 30 Sep 2020 20:27:19 +0200 Subject: [PATCH] Fixed overwrite padding size --- deemix/__init__.py | 2 +- deemix/utils/pathtemplates.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deemix/__init__.py b/deemix/__init__.py index d8f1143..ec4df12 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -__version__ = "1.5.4" +__version__ = "1.5.5" diff --git a/deemix/utils/pathtemplates.py b/deemix/utils/pathtemplates.py index ed40483..f06483f 100644 --- a/deemix/utils/pathtemplates.py +++ b/deemix/utils/pathtemplates.py @@ -55,7 +55,7 @@ def pad(num, max, settings): if int(settings['paddingSize']) == 0: paddingSize = len(str(max)) else: - paddingSize = 10 ** (int(settings['paddingSize']) - 1) + paddingSize = len(str(10 ** (int(settings['paddingSize']) - 1))) if paddingSize == 1: paddingSize = 2 if settings['padTracks']: diff --git a/setup.py b/setup.py index 8b1a9f3..769b03e 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deemix", - version="1.5.4", + version="1.5.5", description="A barebone deezer downloader library", long_description=README, long_description_content_type="text/markdown",