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