1
0
mirror of https://github.com/ciromattia/kcc synced 2026-06-04 21:53:24 +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
+1 -1
View File
@@ -473,7 +473,7 @@
<item> <item>
<widget class="QSpinBox" name="chunkSizeBox"> <widget class="QSpinBox" name="chunkSizeBox">
<property name="minimum"> <property name="minimum">
<number>100</number> <number>50</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>600</number> <number>600</number>
+1 -1
View File
@@ -266,7 +266,7 @@ class Ui_mainWindow(object):
self.chunkSizeBox = QSpinBox(self.chunkSizeWidget) self.chunkSizeBox = QSpinBox(self.chunkSizeWidget)
self.chunkSizeBox.setObjectName(u"chunkSizeBox") self.chunkSizeBox.setObjectName(u"chunkSizeBox")
self.chunkSizeBox.setMinimum(100) self.chunkSizeBox.setMinimum(50)
self.chunkSizeBox.setMaximum(600) self.chunkSizeBox.setMaximum(600)
self.chunkSizeBox.setValue(400) self.chunkSizeBox.setValue(400)
+2 -1
View File
@@ -1423,6 +1423,8 @@ def checkOptions(options):
options.format = 'MOBI' options.format = 'MOBI'
if options.batchsplit != 2: if options.batchsplit != 2:
options.batchsplit = 1 options.batchsplit = 1
if not options.targetsize and options.profile.startswith('Rmk'):
options.targetsize = 95
if options.format == 'MOBI+EPUB': if options.format == 'MOBI+EPUB':
options.keep_epub = True options.keep_epub = True
options.format = 'MOBI' options.format = 'MOBI'
@@ -1775,4 +1777,3 @@ def makeMOBI(work, qtgui=None):
makeMOBIWorkerPool.close() makeMOBIWorkerPool.close()
makeMOBIWorkerPool.join() makeMOBIWorkerPool.join()
return makeMOBIWorkerOutput return makeMOBIWorkerOutput