From 956c383e5f133f3147f55f8f65b501db1c4a0284 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Tue, 5 Mar 2024 15:13:03 -0800 Subject: [PATCH] Fix py7zr --- comicapi/archivers/sevenzip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comicapi/archivers/sevenzip.py b/comicapi/archivers/sevenzip.py index 3dd89f1..3402f8d 100644 --- a/comicapi/archivers/sevenzip.py +++ b/comicapi/archivers/sevenzip.py @@ -37,7 +37,7 @@ class SevenZipArchiver(Archiver): data = b"" try: with py7zr.SevenZipFile(self.path, "r") as zf: - data = zf.read(archive_file)[archive_file].read() + data = zf.read([archive_file])[archive_file].read() except (py7zr.Bad7zFile, OSError) as e: logger.error("Error reading 7zip archive [%s]: %s :: %s", e, self.path, archive_file) raise