From d0f5d6dac4f3645ac92175b44a4ff6b5b347f1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Fri, 17 Oct 2014 14:15:35 +0200 Subject: [PATCH] Tweaked title sorting --- kcc/comic2ebook.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 94d50e7..15322d2 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -1144,7 +1144,10 @@ def makeBook(source, qtGUI=None): GUI.progressBarTick.emit('tick') options.baseTitle = options.title for tome in tomes: - if len(tomes) > 1: + if len(tomes) > 9: + tomeNumber += 1 + options.title = options.baseTitle + ' [' + str(tomeNumber).zfill(2) + '/' + str(len(tomes)).zfill(2) + ']' + elif len(tomes) > 1: tomeNumber += 1 options.title = options.baseTitle + ' [' + str(tomeNumber) + '/' + str(len(tomes)) + ']' if options.format == 'CBZ':