1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

targetsize and EPUB-200MB

This commit is contained in:
darodi
2022-12-23 16:41:17 +01:00
parent 182a292f70
commit b5a0126051
3 changed files with 12 additions and 3 deletions

View File

@@ -984,6 +984,9 @@ def checkOptions(options):
options.iskindle = False
options.bordersColor = None
options.keep_epub = False
if options.format == 'EPUB-200MB':
options.targetsize = 200
options.format = 'EPUB'
if options.format == 'MOBI+EPUB':
options.keep_epub = True
options.format = 'MOBI'
@@ -1006,7 +1009,7 @@ def checkOptions(options):
if options.black_borders:
options.bordersColor = 'black'
# Splitting MOBI is not optional
if (options.format == 'MOBI' or options.format == 'KFX') and options.batchsplit != 2:
if (options.format == 'MOBI' or options.format == 'KFX' or options.format == 'EPUB') and options.batchsplit != 2:
options.batchsplit = 1
# Older Kindle models don't support Panel View.
if options.profile == 'K1' or options.profile == 'K2' or options.profile == 'K34' or options.profile == 'KDX':