From 8007e450b3178f517b83b0989744c6df38867932 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 19 Feb 2022 10:04:21 +0100 Subject: [PATCH] Bugfix for cbr support without comicapi --- cps/comic.py | 2 +- optional-requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/comic.py b/cps/comic.py index 64711460..9e7f4f8f 100644 --- a/cps/comic.py +++ b/cps/comic.py @@ -97,7 +97,7 @@ def _extract_Cover_from_archive(original_file_extension, tmp_file_name, rarExecu try: rarfile.UNRAR_TOOL = rarExecutable cf = rarfile.RarFile(tmp_file_name) - for name in cf.getnames(): + for name in cf.namelist(): ext = os.path.splitext(name) if len(ext) > 1: extension = ext[1].lower() diff --git a/optional-requirements.txt b/optional-requirements.txt index f7c7b572..04f7bb0c 100644 --- a/optional-requirements.txt +++ b/optional-requirements.txt @@ -28,7 +28,7 @@ Flask-Dance>=2.0.0,<5.2.0 SQLAlchemy-Utils>=0.33.5,<0.39.0 # metadata extraction -rarfile>=2.7 +rarfile>=3.2 scholarly>=1.2.0,<1.6 markdown2>=2.0.0,<2.5.0 html2text>=2020.1.16,<2022.1.1