about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--kindlecomicconverter/KCC_gui.py2
-rwxr-xr-xkindlecomicconverter/comic2ebook.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py
index 71e06de..7959b40 100644
--- a/kindlecomicconverter/KCC_gui.py
+++ b/kindlecomicconverter/KCC_gui.py
@@ -1009,7 +1009,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
                             'info')
         rarExitCode = Popen('unrar', stdout=PIPE, stderr=STDOUT, stdin=PIPE, shell=True)
         rarExitCode = rarExitCode.wait()
-        if rarExitCode == 0 or rarExitCode == 7:
+        if rarExitCode == 0 or rarExitCode == 1 or rarExitCode == 7:
             self.UnRAR = True
         else:
             self.UnRAR = False
diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py
index 7aaf027..b560825 100755
--- a/kindlecomicconverter/comic2ebook.py
+++ b/kindlecomicconverter/comic2ebook.py
@@ -374,7 +374,7 @@ def buildOPF(dstdir, title, filelist, cover=None):
                     pageside = "right"
     else:
         for entry in reflist:
-            f.write("<itemref idref=\"page_" + entry + "\">\n")
+            f.write("<itemref idref=\"page_" + entry + "\"/>\n")
     f.write("</spine>\n</package>\n")
     f.close()
     os.mkdir(os.path.join(dstdir, 'META-INF'))
@@ -1056,7 +1056,7 @@ def checkTools(source):
     if source.endswith('.CBR') or source.endswith('.RAR'):
         rarExitCode = Popen('unrar', stdout=PIPE, stderr=STDOUT, stdin=PIPE, shell=True)
         rarExitCode = rarExitCode.wait()
-        if rarExitCode != 0 and rarExitCode != 7:
+        if rarExitCode != 0 and rarExitCode != 1 and rarExitCode != 7:
             print('ERROR: UnRAR is missing!')
             exit(1)
     elif source.endswith('.CB7') or source.endswith('.7Z'):