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

more extraction fixes (#1023)

This commit is contained in:
Alex Xu
2025-07-10 09:14:06 -07:00
committed by GitHub
parent fe7559e6a9
commit 84da718167

View File

@@ -74,7 +74,7 @@ class ComicArchive:
if platform.system() == 'Darwin':
extraction_commands.append(
['unar', self.filepath, '-f', '-o', targetdir]
['unar', self.filepath, '-D', '-f', '-o', targetdir]
)
extraction_commands.reverse()
@@ -87,7 +87,7 @@ class ComicArchive:
for cmd in extraction_commands:
try:
subprocess_run(cmd, capture_output=True, check=True)
return os.path.join(targetdir, os.listdir(targetdir)[0])
return targetdir
except FileNotFoundError:
missing.append(cmd[0])
except CalledProcessError: