mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
Title: Don't strip part after dot if source is directory
This commit is contained in:
@@ -888,11 +888,15 @@ def main(argv=None, qtGUI=None):
|
||||
filepath = []
|
||||
tomeNumber = 0
|
||||
for tome in tomes:
|
||||
if os.path.isdir(args[0]):
|
||||
barePath = os.path.basename(args[0])
|
||||
else:
|
||||
barePath = os.path.splitext(os.path.basename(args[0]))[0]
|
||||
if len(tomes) > 1:
|
||||
tomeNumber += 1
|
||||
options.title = os.path.splitext(os.path.basename(args[0]))[0] + ' ' + str(tomeNumber)
|
||||
options.title = barePath + ' ' + str(tomeNumber)
|
||||
elif options.title == 'defaulttitle':
|
||||
options.title = os.path.splitext(os.path.basename(args[0]))[0]
|
||||
options.title = barePath
|
||||
if options.cbzoutput:
|
||||
# if CBZ output wanted, compress all images and return filepath
|
||||
print "\nCreating CBZ file..."
|
||||
|
||||
Reference in New Issue
Block a user