From ca2a600f134828cb6d0de8305fa8103f514d6e20 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Thu, 22 Dec 2022 14:25:26 +0800 Subject: [PATCH] fix --- utils/entity/RouMan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/entity/RouMan.py b/utils/entity/RouMan.py index 27d45d6..daf4c52 100644 --- a/utils/entity/RouMan.py +++ b/utils/entity/RouMan.py @@ -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)