1
0
mirror of https://github.com/ciromattia/kcc synced 2026-02-19 02:29:04 +00:00

Lower minimum chunk size to 50 MB, Remarkable chunk size default of 100 MB (#1240)

* accept smaller chunks size on gui

* add default target size for Remarkable to 95

* remove rc changes
This commit is contained in:
Sébastien CHEMIN
2026-02-06 18:46:42 +01:00
committed by GitHub
parent d2dc089c62
commit 58aab0cb65
3 changed files with 4 additions and 3 deletions

View File

@@ -473,7 +473,7 @@
<item>
<widget class="QSpinBox" name="chunkSizeBox">
<property name="minimum">
<number>100</number>
<number>50</number>
</property>
<property name="maximum">
<number>600</number>

View File

@@ -266,7 +266,7 @@ class Ui_mainWindow(object):
self.chunkSizeBox = QSpinBox(self.chunkSizeWidget)
self.chunkSizeBox.setObjectName(u"chunkSizeBox")
self.chunkSizeBox.setMinimum(100)
self.chunkSizeBox.setMinimum(50)
self.chunkSizeBox.setMaximum(600)
self.chunkSizeBox.setValue(400)

View File

@@ -1423,6 +1423,8 @@ def checkOptions(options):
options.format = 'MOBI'
if options.batchsplit != 2:
options.batchsplit = 1
if not options.targetsize and options.profile.startswith('Rmk'):
options.targetsize = 95
if options.format == 'MOBI+EPUB':
options.keep_epub = True
options.format = 'MOBI'
@@ -1775,4 +1777,3 @@ def makeMOBI(work, qtgui=None):
makeMOBIWorkerPool.close()
makeMOBIWorkerPool.join()
return makeMOBIWorkerOutput