From 2c4b239d6709fbf5e10ad130aa7f512ca462ee78 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 11 May 2024 19:48:53 -0700 Subject: [PATCH] remove unar --- README.md | 1 - kindlecomicconverter/comicarchive.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/README.md b/README.md index 3e747bc..7726025 100644 --- a/README.md +++ b/README.md @@ -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 ``` brew install p7zip -brew install unar ``` ### KindleGen diff --git a/kindlecomicconverter/comicarchive.py b/kindlecomicconverter/comicarchive.py index 23cfac4..ee9b0d3 100644 --- a/kindlecomicconverter/comicarchive.py +++ b/kindlecomicconverter/comicarchive.py @@ -70,9 +70,6 @@ class ComicArchive: , stdout=PIPE, stderr=STDOUT) if process.returncode != 0: 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: raise OSError(EXTRACTION_ERROR) return targetdir