diff options
-rw-r--r-- | gamechestcli/gamechest/runners/extract.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gamechestcli/gamechest/runners/extract.py b/gamechestcli/gamechest/runners/extract.py index 1715bd6..cb8009a 100644 --- a/gamechestcli/gamechest/runners/extract.py +++ b/gamechestcli/gamechest/runners/extract.py @@ -34,10 +34,10 @@ class Extract(RunnerBase): lzip_command = '/usr/bin/lzip' plzip_command = '/usr/bin/plzip' uncompress_command_to_use = [lzip_command, '--decompress'] - if src.endswith('.tlz'): + if str(src).endswith('.tlz'): if os.path.exists(plzip_command): uncompress_command_to_use = [plzip_command, '--decompress'] - elif src.endswith('.tzst'): + elif str(src).endswith('.tzst'): uncompress_command_to_use = ['zstd', '-T0', '-d', '--stdout'] self.zip_proc = subprocess.Popen( uncompress_command_to_use, |