1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-15 18:56:28 +00:00

remove unar

This commit is contained in:
Alex Xu
2024-05-11 19:48:53 -07:00
parent af8c564a50
commit 2c4b239d67
2 changed files with 0 additions and 4 deletions

View File

@@ -74,7 +74,6 @@ KCC expects `7z` to be installed to the default location at `C:\Program Files\7-
with [Homebrew](https://brew.sh/) installed with [Homebrew](https://brew.sh/) installed
``` ```
brew install p7zip brew install p7zip
brew install unar
``` ```
### KindleGen ### KindleGen

View File

@@ -70,9 +70,6 @@ class ComicArchive:
, stdout=PIPE, stderr=STDOUT) , stdout=PIPE, stderr=STDOUT)
if process.returncode != 0: if process.returncode != 0:
raise OSError(EXTRACTION_ERROR) raise OSError(EXTRACTION_ERROR)
elif process.returncode != 0 and platform.system() == 'Darwin':
process = subprocess_run_silent(['unar', self.filepath, '-f', '-o', targetdir],
stdout=PIPE, stderr=STDOUT)
elif process.returncode != 0: elif process.returncode != 0:
raise OSError(EXTRACTION_ERROR) raise OSError(EXTRACTION_ERROR)
return targetdir return targetdir