fix
This commit is contained in:
1 parent
9f52400416
commit
30be4fdca8
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -93,10 +93,10 @@ class BaseSite(ABC):
|
|||||||
cbz_path = FileNaming.chapter_cbz(manga_info=manga_info,chapter=chapter)
|
cbz_path = FileNaming.chapter_cbz(manga_info=manga_info,chapter=chapter)
|
||||||
old_cbz_path = FileNaming.old_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):
|
if os.path.exists(cbz_path):
|
||||||
logger.info(f"{chapter.title} 章节已存在")
|
logger.debug(f"{chapter.title} 章节已存在")
|
||||||
chapter.status = "downloaded"
|
chapter.status = "downloaded"
|
||||||
if os.path.exists(old_cbz_path):
|
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)
|
if not os.path.exists(os.path.dirname(cbz_path)): os.makedirs(cbz_path)
|
||||||
CBZUtils()._clean_old_cbz(old_cbz_path)
|
CBZUtils()._clean_old_cbz(old_cbz_path)
|
||||||
if os.path.exists(old_cbz_path):
|
if os.path.exists(old_cbz_path):
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class MangaManager:
|
|||||||
async for result in site.download_manga(url):
|
async for result in site.download_manga(url):
|
||||||
if result['type'] == 'info':
|
if result['type'] == 'info':
|
||||||
manga_info = result['data']
|
manga_info = result['data']
|
||||||
logger.info(f"漫画信息: {manga_info}")
|
logger.debug(f"漫画信息: {manga_info}")
|
||||||
|
|
||||||
# 使用 MangaItem 保存数据
|
# 使用 MangaItem 保存数据
|
||||||
manga_item = MangaItem(info=manga_info, chapters=[])
|
manga_item = MangaItem(info=manga_info, chapters=[])
|
||||||
|
|||||||
Reference in new issue
Block a user