From dfc03aee38dcae8ee0674fcd9ccaeb65917491c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Mon, 18 Mar 2013 14:13:53 +0100 Subject: [PATCH] Restoring more safe filesize limit --- kcc/gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kcc/gui.py b/kcc/gui.py index 2e5978a..bc790c1 100644 --- a/kcc/gui.py +++ b/kcc/gui.py @@ -209,10 +209,10 @@ class MainWindow: continue if self.options['Aepub_only'].get() == 0: try: - if os.path.getsize(epub_path) > 335544320: - # do not call kindlegen if source is bigger than 320MB + if os.path.getsize(epub_path) > 314572800: + # do not call kindlegen if source is bigger than 300MB 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) continue retcode = call("kindlegen \"" + epub_path + "\"", shell=True)