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