1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 17:56:30 +00:00

Zero pad metadata (close #186)

This commit is contained in:
Paweł Jastrzębski
2016-02-12 18:09:47 +01:00
parent 4079314b61
commit f78dc3cd8f

View File

@@ -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]: