1
0
mirror of https://github.com/ciromattia/kcc synced 2026-07-22 20:53:13 +00:00

Restoring more safe filesize limit

This commit is contained in:
Paweł Jastrzębski
2013-03-18 14:13:53 +01:00
parent 6bc8038068
commit dfc03aee38
+3 -3
View File
@@ -209,10 +209,10 @@ class MainWindow:
continue continue
if self.options['Aepub_only'].get() == 0: if self.options['Aepub_only'].get() == 0:
try: try:
if os.path.getsize(epub_path) > 335544320: if os.path.getsize(epub_path) > 314572800:
# do not call kindlegen if source is bigger than 320MB # do not call kindlegen if source is bigger than 300MB
tkMessageBox.showwarning('KindleGen Warning', tkMessageBox.showwarning('KindleGen Warning',
"ePub file %s is bigger than 320MB, not suitable for kindlegen" % "ePub file %s is bigger than 300MB, not suitable for kindlegen" %
epub_path) epub_path)
continue continue
retcode = call("kindlegen \"" + epub_path + "\"", shell=True) retcode = call("kindlegen \"" + epub_path + "\"", shell=True)