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:
+1
-1
@@ -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>
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user