diff --git a/src/common/utils.py b/src/common/utils.py index 7037cb0..1783758 100644 --- a/src/common/utils.py +++ b/src/common/utils.py @@ -183,7 +183,7 @@ class MangaDownloader: 'failed_items': failed_items } - logger.info(f"章节 {chapter.title} 下载完成: {status.success}/{len(image_items)} 张图片成功下载") + logger.debug(f"章节 {chapter.title} 下载完成: {status.success}/{len(image_items)} 张图片成功下载") return result @@ -295,7 +295,7 @@ class CBZUtils: result = False is_comic_info = False if not os.path.exists(zip_file_path): - logger.info(f"ZIP 文件不存在: {zip_file_path}") + logger.debug(f"ZIP 文件不存在: {zip_file_path}") return False try: with ZipFile(zip_file_path, 'r') as zip_file: @@ -317,7 +317,7 @@ class CBZUtils: logger.error("ZIP 文件中没有 ComicInfo.xml") os.remove(zip_file_path) except FileNotFoundError: - logger.info(f"ZIP 文件不存在: {zip_file_path}") + logger.error(f"ZIP 文件不存在: {zip_file_path}") except Exception as e: logger.error(f"检查 ZIP 文件失败: {zip_file_path},错误: {str(e)}") if os.path.exists(zip_file_path): diff --git a/src/sites/manager.py b/src/sites/manager.py index b80edfc..86dea89 100644 --- a/src/sites/manager.py +++ b/src/sites/manager.py @@ -191,8 +191,10 @@ class MangaManager: ) else: success_chapters += 1 - logger.info(f"章节 {result['chapter']} 完成") + logger.info(f"\n章节 {result['chapter']} 完成") + if title != None: + print(f"\n {title}") print(f"\n总进度: {completed_chapters}/{total_chapters} 章") elif result['type'] == 'chapter_error':