From 921caf67168402960a18ea83624ecd809b989cfb Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 10 May 2024 09:05:31 +0200 Subject: [PATCH] Fix for #3050 (metadata extraction for cb7 files not working) --- cps/comic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/comic.py b/cps/comic.py index 4242bb2f..27c86c9a 100644 --- a/cps/comic.py +++ b/cps/comic.py @@ -102,7 +102,7 @@ def _extract_cover_from_archive(original_file_extension, tmp_file_name, rar_exec extension = ext[1].lower() if extension in cover.COVER_EXTENSIONS: try: - cover_data = cf.read(name)[name].read() + cover_data = cf.read([name])[name].read() except (py7zr.Bad7zFile, OSError) as ex: log.error('7Zip file failed with error: {}'.format(ex)) break