about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <[email protected]>2016-02-12 18:09:47 +0100
committerPaweł Jastrzębski <[email protected]>2016-02-12 18:09:47 +0100
commitf78dc3cd8f49e8afbdc3e14190209e81ff24e1f2 (patch)
tree5a391863cbc18f4afbc7ed0e9dc189500bccef31
parentTweaked KindleGen handling (diff)
downloadkcc-f78dc3cd8f49e8afbdc3e14190209e81ff24e1f2.tar.gz
kcc-f78dc3cd8f49e8afbdc3e14190209e81ff24e1f2.tar.bz2
kcc-f78dc3cd8f49e8afbdc3e14190209e81ff24e1f2.zip
Zero pad metadata (close #186)
-rwxr-xr-xkcc/comic2ebook.py4
1 files 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]: