diff options
| author | Paweł Jastrzębski <[email protected]> | 2016-02-12 18:09:47 +0100 |
|---|---|---|
| committer | Paweł Jastrzębski <[email protected]> | 2016-02-12 18:09:47 +0100 |
| commit | f78dc3cd8f49e8afbdc3e14190209e81ff24e1f2 (patch) | |
| tree | 5a391863cbc18f4afbc7ed0e9dc189500bccef31 | |
| parent | Tweaked KindleGen handling (diff) | |
| download | kcc-f78dc3cd8f49e8afbdc3e14190209e81ff24e1f2.tar.gz kcc-f78dc3cd8f49e8afbdc3e14190209e81ff24e1f2.tar.bz2 kcc-f78dc3cd8f49e8afbdc3e14190209e81ff24e1f2.zip | |
Zero pad metadata (close #186)
| -rwxr-xr-x | kcc/comic2ebook.py | 4 |
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]: |