debug
This commit is contained in:
parent
85a24e8cc7
commit
1e1b20428c
@ -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):
|
||||
|
||||
@ -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':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user