mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 18:56:28 +00:00
more extraction fixes (#1023)
This commit is contained in:
@@ -74,7 +74,7 @@ class ComicArchive:
|
|||||||
|
|
||||||
if platform.system() == 'Darwin':
|
if platform.system() == 'Darwin':
|
||||||
extraction_commands.append(
|
extraction_commands.append(
|
||||||
['unar', self.filepath, '-f', '-o', targetdir]
|
['unar', self.filepath, '-D', '-f', '-o', targetdir]
|
||||||
)
|
)
|
||||||
|
|
||||||
extraction_commands.reverse()
|
extraction_commands.reverse()
|
||||||
@@ -87,7 +87,7 @@ class ComicArchive:
|
|||||||
for cmd in extraction_commands:
|
for cmd in extraction_commands:
|
||||||
try:
|
try:
|
||||||
subprocess_run(cmd, capture_output=True, check=True)
|
subprocess_run(cmd, capture_output=True, check=True)
|
||||||
return os.path.join(targetdir, os.listdir(targetdir)[0])
|
return targetdir
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
missing.append(cmd[0])
|
missing.append(cmd[0])
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
|
|||||||
Reference in New Issue
Block a user