diff options
| author | Paweł Jastrzębski <[email protected]> | 2016-01-03 19:15:31 +0100 |
|---|---|---|
| committer | Paweł Jastrzębski <[email protected]> | 2016-01-03 19:15:31 +0100 |
| commit | 4079314b61fbf83f3da22641639c1546a96b4cfd (patch) | |
| tree | 013961a1ca16dde0498b47308e071569623fea33 | |
| parent | Merge branch 'tamodolo-master' into dev (diff) | |
| download | kcc-4079314b61fbf83f3da22641639c1546a96b4cfd.tar.gz kcc-4079314b61fbf83f3da22641639c1546a96b4cfd.tar.bz2 kcc-4079314b61fbf83f3da22641639c1546a96b4cfd.zip | |
Tweaked KindleGen handling
| -rwxr-xr-x | kcc/comic2ebook.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index b069311..43c7e24 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -1230,7 +1230,6 @@ def makeMOBIWorker(item): kindlegenError = '' try: if os.path.getsize(item) < 629145600: - print("Creating MOBI file...") output = Popen('kindlegen -dont_append_source -locale en "' + item + '"', stdout=PIPE, stderr=STDOUT, stdin=PIPE, shell=False) for line in output.stdout: @@ -1244,7 +1243,7 @@ def makeMOBIWorker(item): kindlegenErrorCode = 23026 if kindlegenErrorCode > 0: break - if "Mobi file built successfully" in line: + if ":I1036: Mobi file built successfully" in line: output.terminate() else: # ERROR: EPUB too big |