This commit is contained in:
caiwx86 2022-12-22 14:25:26 +08:00
parent 2a5fa0f9db
commit ca2a600f13

View File

@ -168,6 +168,7 @@ class comicEntity:
description = x.get("description")
images = x.get("images")
chapterAPIPath = x.get("chapterAPIPath")
chapterAPIPath = str(chapterAPIPath).encode('utf-8').decode('unicode_escape')
comicInfo.setComicName(bookName)
comicInfo.setChapterName(chapterName)
comicInfo.setDep(description)
@ -177,7 +178,6 @@ class comicEntity:
comicInfo.writeComicInfoXML(chapterName)
if chapterAPIPath != None:
chapterAPIUrl = str(chapterAPIUrl).replace("\u0026","&")
base_url = comicInfo.getBaseUrl(chapter_url)
chapterAPIUrl = base_url+chapterAPIPath
data = htmlUtils.getJSON(chapterAPIUrl)