1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Fixed unrar detection

This commit is contained in:
Paweł Jastrzębski
2018-03-10 08:26:14 +01:00
parent 34e2af3389
commit eec2099515
2 changed files with 2 additions and 2 deletions

View File

@@ -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'):