From 07e4210f5f273cd2e4b1ce16756789f474012b31 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Thu, 14 Nov 2024 19:46:50 +0800 Subject: [PATCH] fix --- Comics/_utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Comics/_utils/utils.py b/Comics/_utils/utils.py index 33c516c..9b296e1 100644 --- a/Comics/_utils/utils.py +++ b/Comics/_utils/utils.py @@ -962,7 +962,7 @@ class oldUtils: # 列出文件夹中的所有文件 all_files = os.listdir(folder_path) # 筛选出扩展名为 .zip 的文件并移除 ".zip" 后缀 - zip_files = [os.path.splitext(file)[0] for file in all_files if file.lower().endswith('.zip')] + zip_files = [os.path.splitext(file)[0] for file in all_files if file.lower().endswith('.cbz')] return zip_files except Exception as e: print(f"获取 ZIP 文件失败: {e}")