fix
This commit is contained in:
parent
9f52400416
commit
30be4fdca8
@ -93,10 +93,10 @@ class BaseSite(ABC):
|
||||
cbz_path = FileNaming.chapter_cbz(manga_info=manga_info,chapter=chapter)
|
||||
old_cbz_path = FileNaming.old_chapter_cbz(manga_info=manga_info,chapter=chapter)
|
||||
if os.path.exists(cbz_path):
|
||||
logger.info(f"{chapter.title} 章节已存在")
|
||||
logger.debug(f"{chapter.title} 章节已存在")
|
||||
chapter.status = "downloaded"
|
||||
if os.path.exists(old_cbz_path):
|
||||
logger.info(f"{chapter.title} Old章节存在")
|
||||
logger.debug(f"{chapter.title} Old章节存在")
|
||||
if not os.path.exists(os.path.dirname(cbz_path)): os.makedirs(cbz_path)
|
||||
CBZUtils()._clean_old_cbz(old_cbz_path)
|
||||
if os.path.exists(old_cbz_path):
|
||||
|
||||
@ -50,7 +50,7 @@ class MangaManager:
|
||||
async for result in site.download_manga(url):
|
||||
if result['type'] == 'info':
|
||||
manga_info = result['data']
|
||||
logger.info(f"漫画信息: {manga_info}")
|
||||
logger.debug(f"漫画信息: {manga_info}")
|
||||
|
||||
# 使用 MangaItem 保存数据
|
||||
manga_item = MangaItem(info=manga_info, chapters=[])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user