This commit is contained in:
caiwx86 2025-07-11 15:18:02 +08:00
parent e1059cc262
commit c020596284

View File

@ -114,11 +114,12 @@ class BaseSite(ABC):
downloaded_chapter.append({ "name" : chapter.title, "status": chapter.status, "path" : cbz_path }) downloaded_chapter.append({ "name" : chapter.title, "status": chapter.status, "path" : cbz_path })
down_chapter.append(chapter) down_chapter.append(chapter)
if manga_info.status == "已完结": if manga_info.status == "已完结":
from src.common.utils import KomgaAPI from src.common.utils import KomgaAPI, MangaUtils
if len(downloaded_chapter) == len(list_chapter): if len(downloaded_chapter) == len(list_chapter):
logger.info(f"{manga_info.title} 漫画已完结, 章节已全部下载完成") logger.info(f"{manga_info.title} 漫画已完结, 章节已全部下载完成")
KomgaAPI().update_series_ended(manga_info.title) KomgaAPI().update_series_ended(manga_info.title)
logger.info(f"{manga_info.title} 漫画已完结, 已更新KOMGA状态") logger.info(f"{manga_info.title} 漫画已完结, 已更新KOMGA状态")
MangaUtils("mangas_ended.json").add_manga(name= manga_info.title)
else: else:
logger.info(f"{manga_info.title} 漫画已完结, 但章节未全部下载完成, 可能是网络问题或其他原因") logger.info(f"{manga_info.title} 漫画已完结, 但章节未全部下载完成, 可能是网络问题或其他原因")
return down_chapter return down_chapter