diff options
author | vg <vgm+dev@devys.org> | 2024-03-04 22:11:23 +0100 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2024-03-04 22:11:23 +0100 |
commit | 52f68b2c7aa02846cbcfc73b441ebf51770c9b74 (patch) | |
tree | 12c0b2e0fbee3f345b311f0962d43de1681cdd26 /gamechestcli | |
parent | 56b6b7de37e416ad87a8b2766ed0df4f13a67778 (diff) | |
download | gamechest-52f68b2c7aa02846cbcfc73b441ebf51770c9b74.tar.gz gamechest-52f68b2c7aa02846cbcfc73b441ebf51770c9b74.tar.bz2 gamechest-52f68b2c7aa02846cbcfc73b441ebf51770c9b74.zip |
git-sync on dita
Diffstat (limited to 'gamechestcli')
-rw-r--r-- | gamechestcli/gamechest/runners/extract.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gamechestcli/gamechest/runners/extract.py b/gamechestcli/gamechest/runners/extract.py index 12f4d2f..1715bd6 100644 --- a/gamechestcli/gamechest/runners/extract.py +++ b/gamechestcli/gamechest/runners/extract.py @@ -33,14 +33,14 @@ class Extract(RunnerBase): ) lzip_command = '/usr/bin/lzip' plzip_command = '/usr/bin/plzip' - lzip_command_to_use = lzip_command - if os.path.exists(plzip_command): - lzip_command_to_use = plzip_command + uncompress_command_to_use = [lzip_command, '--decompress'] + if src.endswith('.tlz'): + if os.path.exists(plzip_command): + uncompress_command_to_use = [plzip_command, '--decompress'] + elif src.endswith('.tzst'): + uncompress_command_to_use = ['zstd', '-T0', '-d', '--stdout'] self.zip_proc = subprocess.Popen( - [ - lzip_command_to_use, - '--decompress', - ], + uncompress_command_to_use, stdin=self.pv_proc.stdout, stdout=subprocess.PIPE, **common_parameters, |