This commit is contained in:
cwx
2022-12-22 13:40:16 +08:00
parent 02455f96d8
commit e0ebedb95a
2 changed files with 20 additions and 5 deletions
+9 -4
View File
@@ -175,10 +175,15 @@ class comicEntity:
if chapterAPIPath != None:
base_url = comicInfo.getBaseUrl(chapter_url)
chapterAPIUrl = base_url+chapterAPIPath
data = json.loads(htmlUtils.getJSON(chapterAPIUrl))
data = data.get("chapter")
chapterName = data.get("name")
images = data.get("images")
try:
data = htmlUtils.getJSON(chapterAPIUrl)
data = data.get("chapter")
chapterName = data.get("name")
images = data.get("images")
except:
htmlUtils.remove_HtmlCache(chapterAPIUrl)
ntfy.sendMsg("存在错误,请退出后尝试")
exit()
if images == None:
ntfy.sendMsg(f"未获取到章节图像 comic_name={bookName} chapter={chapterName}")