mirror of
https://github.com/ciromattia/kcc
synced 2026-01-03 03:49:36 +00:00
Add basic support for converting more >1 file
This commit is contained in:
@@ -57,10 +57,13 @@ def main(argv=None):
|
||||
parser = makeParser()
|
||||
options, args = parser.parse_args(argv)
|
||||
checkOptions()
|
||||
if len(args) != 1:
|
||||
if len(args) < 1:
|
||||
parser.print_help()
|
||||
return
|
||||
outputPath = makeBook(args[0])
|
||||
for source in args:
|
||||
if len(args) > 1:
|
||||
print('\nWorking on {}...'.format(source))
|
||||
outputPath = makeBook(source)
|
||||
return outputPath
|
||||
|
||||
|
||||
@@ -1254,4 +1257,4 @@ def makeMOBI(work, qtGUI=None):
|
||||
makeMOBIWorkerPool.apply_async(func=makeMOBIWorker, args=(i, ), callback=makeMOBIWorkerTick)
|
||||
makeMOBIWorkerPool.close()
|
||||
makeMOBIWorkerPool.join()
|
||||
return makeMOBIWorkerOutput
|
||||
return makeMOBIWorkerOutput
|
||||
|
||||
Reference in New Issue
Block a user