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:
simesherbs
2025-03-13 09:07:03 -07:00
committed by GitHub
co-authored by Alex Xu
parent 271a129537
commit 6a33aee241
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -1076,6 +1076,12 @@ def checkOptions(options):
options.format = 'EPUB'
if options.batchsplit != 2:
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':
options.keep_epub = True
options.format = 'MOBI'