mirror of
https://github.com/ciromattia/kcc
synced 2025-12-19 20:51:45 +00:00
New "MOBI + EPUB (200MB)" output option (#866)
* initial fix * initial * working, but mobi is a bit too large * changed target size to 190mb to account for mobi conversion size increase * changed target size back to 195 * removed debugging print statements * add trailing comma --------- Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
This commit is contained in:
@@ -922,7 +922,8 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
|
|||||||
"CBZ": {'icon': 'CBZ', 'format': 'CBZ'},
|
"CBZ": {'icon': 'CBZ', 'format': 'CBZ'},
|
||||||
"EPUB (Calibre KFX)": {'icon': 'EPUB', 'format': 'KFX'},
|
"EPUB (Calibre KFX)": {'icon': 'EPUB', 'format': 'KFX'},
|
||||||
"MOBI + EPUB": {'icon': 'MOBI', 'format': 'MOBI+EPUB'},
|
"MOBI + EPUB": {'icon': 'MOBI', 'format': 'MOBI+EPUB'},
|
||||||
"EPUB (200MB limit)": {'icon': 'EPUB', 'format': 'EPUB-200MB'}
|
"EPUB (200MB limit)": {'icon': 'EPUB', 'format': 'EPUB-200MB'},
|
||||||
|
"MOBI + EPUB (200MB limit)": {'icon': 'MOBI', 'format': 'MOBI+EPUB-200MB'},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1076,6 +1076,12 @@ def checkOptions(options):
|
|||||||
options.format = 'EPUB'
|
options.format = 'EPUB'
|
||||||
if options.batchsplit != 2:
|
if options.batchsplit != 2:
|
||||||
options.batchsplit = 1
|
options.batchsplit = 1
|
||||||
|
if options.format == 'MOBI+EPUB-200MB':
|
||||||
|
options.keep_epub = True
|
||||||
|
options.targetsize = 195
|
||||||
|
options.format = 'MOBI'
|
||||||
|
if options.batchsplit != 2:
|
||||||
|
options.batchsplit = 1
|
||||||
if options.format == 'MOBI+EPUB':
|
if options.format == 'MOBI+EPUB':
|
||||||
options.keep_epub = True
|
options.keep_epub = True
|
||||||
options.format = 'MOBI'
|
options.format = 'MOBI'
|
||||||
|
|||||||
Reference in New Issue
Block a user