This commit is contained in:
cwx committed 2022-12-21 20:56:53 +08:00
1 parent 647da98882
commit adf462b42b
3 files changed
+6 -6

No files matched your search

+2 -1
View File
@@ -66,7 +66,8 @@ class CBZUtils:
return False return False
except: except:
ntfy.sendMsg("CBZ打包失败") print("")
#ntfy.sendMsg("CBZ打包失败")
comicInfo.nextCBZToDoneChapter() comicInfo.nextCBZToDoneChapter()
@classmethod @classmethod
+1 -1
View File
@@ -239,7 +239,7 @@ class comicInfo():
with open(cls.pathComicInfo , "w", encoding="utf-8") as fo: with open(cls.pathComicInfo , "w", encoding="utf-8") as fo:
newDocument.writexml(fo, indent='', addindent='\t', newl='\n', encoding="utf-8") newDocument.writexml(fo, indent='', addindent='\t', newl='\n', encoding="utf-8")
fo.close() fo.close()
print("ComicInfo.xml 已生成 pathd=", cls.pathComicInfo) #print("ComicInfo.xml 已生成 pathd=", cls.pathComicInfo)
#文件保存 #文件保存
@classmethod @classmethod
+3 -4
View File
@@ -49,7 +49,7 @@ class comicEntity:
else: else:
ntfy.sendMsg(f"{book_name} 已是最新") ntfy.sendMsg(f"{book_name} 已是最新")
print(books) #print(books)
#for comicHref in comicsHref: #for comicHref in comicsHref:
# cls.oneComic(comicHref,random.uniform(10,20)) # cls.oneComic(comicHref,random.uniform(10,20))
@@ -170,7 +170,7 @@ class comicEntity:
comicInfo.setDep(description) comicInfo.setDep(description)
pathComicInfo = comicInfo.getPathComicInfoXML() pathComicInfo = comicInfo.getPathComicInfoXML()
if not os.path.exists(pathComicInfo): if not os.path.exists(pathComicInfo):
print("不存在ComicInfo.xml 生成中...") #print("不存在ComicInfo.xml 生成中...")
comicInfo.writeComicInfoXML(chapterName) comicInfo.writeComicInfoXML(chapterName)
if chapterAPIPath != None: if chapterAPIPath != None:
@@ -185,7 +185,6 @@ class comicEntity:
tags = x.get("tags") tags = x.get("tags")
x = tags x = tags
print(x)
count = 1 count = 1
list_img = [] list_img = []
list_scramble = [] list_scramble = []
@@ -203,7 +202,7 @@ class comicEntity:
count_image = "scramble="+str(blocks)+"_"+count_image count_image = "scramble="+str(blocks)+"_"+count_image
list_fileName.append(count_image+image_src_prefix) list_fileName.append(count_image+image_src_prefix)
count+=1 count+=1
print("count_all_img=", count) #print("count_all_img=", count)
#netUtils.downloadComicChapterImages(list_img,scrambles=list_scramble) #netUtils.downloadComicChapterImages(list_img,scrambles=list_scramble)
comicInfo.setChapterImgs(list_img) comicInfo.setChapterImgs(list_img)
#保存图像 #保存图像