fix
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user