From f78dc3cd8f49e8afbdc3e14190209e81ff24e1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Fri, 12 Feb 2016 18:09:47 +0100 Subject: [PATCH] Zero pad metadata (close #186) --- kcc/comic2ebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 43c7e24..7e1d90c 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -656,9 +656,9 @@ def getComicInfo(path, originalPath): if xml.data['Series']: options.title = escape(xml.data['Series']) if xml.data['Volume']: - titleSuffix += ' V' + xml.data['Volume'] + titleSuffix += ' V' + xml.data['Volume'].zfill(2) if xml.data['Number']: - titleSuffix += ' #' + xml.data['Number'] + titleSuffix += ' #' + xml.data['Number'].zfill(3) options.title += titleSuffix for field in ['Writers', 'Pencillers', 'Inkers', 'Colorists']: for person in xml.data[field]: