From d57d7596fa0c7c8feb7b825b90df2ffe63ba0681 Mon Sep 17 00:00:00 2001 From: cwx Date: Wed, 7 Dec 2022 11:03:12 +0800 Subject: [PATCH] fix --- utils/comic/ComicInfo.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/utils/comic/ComicInfo.py b/utils/comic/ComicInfo.py index 740282c..4defdc5 100644 --- a/utils/comic/ComicInfo.py +++ b/utils/comic/ComicInfo.py @@ -182,12 +182,7 @@ class comicInfo(): @classmethod def writeComicInfoXML(cls,chapter): if cls.chapter == cls.fixFileName(chapter): - wait = input(f"cls.chapter {cls.chapter} 与 chapter {chapter} 不相等,是否继续y/n ") - if wait == "y": - print("继续中...") - else: - print("用户操作取消...") - exit() + print(f"cls.chapter {cls.chapter} 与 chapter {chapter} 不相等,已自动跳过") root = cls.Root() newDocument = Document() @@ -250,15 +245,9 @@ class comicInfo(): @classmethod def nextSaveInfoChapter(cls,chapter,data): - if cls.str_chapter == chapter: - cls.nextSavePath("info_",data) - else: - wait = input(f"chapter {cls.str_chapter} 与 {chapter} 不一致,是否继续 y/n") - if wait == "y": - cls.nextSavePath("info_",data) - print("继续中") - else: - exit() + if not cls.str_chapter == chapter: + print(f"chapter {cls.str_chapter} 与 {chapter} 不一致,已自动跳过") + cls.nextSavePath("info_",data) @classmethod def nextInfoToImgChapter(cls):