This commit is contained in:
caiwx86 2025-02-05 02:31:18 +08:00
parent 85a24e8cc7
commit 1e1b20428c
2 changed files with 6 additions and 4 deletions

View File

@ -183,7 +183,7 @@ class MangaDownloader:
'failed_items': failed_items '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 return result
@ -295,7 +295,7 @@ class CBZUtils:
result = False result = False
is_comic_info = False is_comic_info = False
if not os.path.exists(zip_file_path): if not os.path.exists(zip_file_path):
logger.info(f"ZIP 文件不存在: {zip_file_path}") logger.debug(f"ZIP 文件不存在: {zip_file_path}")
return False return False
try: try:
with ZipFile(zip_file_path, 'r') as zip_file: with ZipFile(zip_file_path, 'r') as zip_file:
@ -317,7 +317,7 @@ class CBZUtils:
logger.error("ZIP 文件中没有 ComicInfo.xml") logger.error("ZIP 文件中没有 ComicInfo.xml")
os.remove(zip_file_path) os.remove(zip_file_path)
except FileNotFoundError: except FileNotFoundError:
logger.info(f"ZIP 文件不存在: {zip_file_path}") logger.error(f"ZIP 文件不存在: {zip_file_path}")
except Exception as e: except Exception as e:
logger.error(f"检查 ZIP 文件失败: {zip_file_path},错误: {str(e)}") logger.error(f"检查 ZIP 文件失败: {zip_file_path},错误: {str(e)}")
if os.path.exists(zip_file_path): if os.path.exists(zip_file_path):

View File

@ -191,8 +191,10 @@ class MangaManager:
) )
else: else:
success_chapters += 1 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}") print(f"\n总进度: {completed_chapters}/{total_chapters}")
elif result['type'] == 'chapter_error': elif result['type'] == 'chapter_error':