From a60fd5e195bef08eb5dae31b628f5929ff3863cd Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 2 Jun 2020 11:55:31 +0200 Subject: [PATCH] padTracks now forces padding for albums with less than 10 tracks This fixes #14 --- deemix/utils/pathtemplates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deemix/utils/pathtemplates.py b/deemix/utils/pathtemplates.py index a4f545c..885c8cd 100644 --- a/deemix/utils/pathtemplates.py +++ b/deemix/utils/pathtemplates.py @@ -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: