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

Allow unrar to overwrite files

On systems without the appropriate 7zip functionality, corrupt files will be created in the working directory, causing unrar to fail as its default behavior is to disallow overwriting files with the same names.
This commit is contained in:
cookie99999
2023-05-12 14:38:03 -04:00
committed by GitHub
parent e1aa6cd0af
commit b13b8881d5

View File

@@ -57,7 +57,7 @@ class ComicArchive:
self.filepath + '"', stdout=PIPE, stderr=STDOUT, stdin=PIPE, shell=True)
process.communicate()
if process.returncode != 0:
process = Popen('unrar x -y -x__MACOSX -x.DS_Store -xthumbs.db -xThumbs.db "' + self.filepath + '" "' +
process = Popen('unrar x -y -o+ -x__MACOSX -x.DS_Store -xthumbs.db -xThumbs.db "' + self.filepath + '" "' +
targetdir + '"', stdout=PIPE, stderr=STDOUT, stdin=PIPE, shell=True)
process.communicate()
if process.returncode != 0: