diff --git a/entity/down/RouMan.py b/entity/down/RouMan.py index 7fd8da7..3a64052 100644 --- a/entity/down/RouMan.py +++ b/entity/down/RouMan.py @@ -15,7 +15,7 @@ class comicCommon: @classmethod def comicChapterDownload(cls,chapter_url): - x = cls.baseComicData(chapter_url) + x = cls.baseComicData(chapter_url,update=True) book_name = x.get("bookName") chapter_name = x.get("chapterName") #fileUtils.saveConfComicChapterInfo(chapterName,x,bookName) @@ -34,7 +34,7 @@ class comicCommon: base_url = comicInfo.getBaseUrl(chapter_url) chapter_api_url = base_url+chapter_api_path ntfy.sendMsg(f"chapterApiUrl= {chapter_api_url}",alert=False) - data = htmlUtils.getJSON(chapter_api_url) + data = htmlUtils.getJSON(chapter_api_url,update=True) if data != None: data = data.get("chapter") (chapter_name,images) = [data.get("name"),data.get("images")] diff --git a/utils/HtmlUtils.py b/utils/HtmlUtils.py index 71fc7c8..8e8b4e9 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -99,8 +99,7 @@ class htmlUtils: return cls.getHTML(url,type="bytes") @classmethod - def getJSON(cls,url,update=False,test=True): - json_data = cls.getHTML(url,type="json") + def getJSON(cls,url,update=False): return cls.getHTML(url,type="json") @classmethod