mirror of
https://github.com/ciromattia/kcc
synced 2026-09-01 00:17:05 +00:00
Older UnRAR exit code is 7 when it is called without parameters
This commit is contained in:
+2
-1
@@ -422,7 +422,8 @@ class Ui_KCC(object):
|
|||||||
self.KindleGen = False
|
self.KindleGen = False
|
||||||
formats = ['EPUB', 'CBZ']
|
formats = ['EPUB', 'CBZ']
|
||||||
self.addMessage('Cannot find kindlegen in PATH! MOBI creation will be disabled.', 'warning')
|
self.addMessage('Cannot find kindlegen in PATH! MOBI creation will be disabled.', 'warning')
|
||||||
if call('unrar', stdout=PIPE, stderr=STDOUT, shell=True) == 0:
|
rarExitCode = call('unrar', stdout=PIPE, stderr=STDOUT, shell=True)
|
||||||
|
if rarExitCode == 0 or rarExitCode == 7:
|
||||||
self.UnRAR = True
|
self.UnRAR = True
|
||||||
else:
|
else:
|
||||||
self.UnRAR = False
|
self.UnRAR = False
|
||||||
|
|||||||
Reference in New Issue
Block a user