diff --git a/entity/down/RouMan.py b/entity/down/RouMan.py index 3a64052..7fd8da7 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,update=True) + x = cls.baseComicData(chapter_url) 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,update=True) + data = htmlUtils.getJSON(chapter_api_url) 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 8e8b4e9..9460df1 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -70,7 +70,7 @@ class htmlUtils: res = s.get(curl,stream=True, headers=cls.headers, timeout=10,allow_redirects=True) if res.status_code != 200: cls.remove_HtmlCache(curl) - return None + continue if type == "bytes": url_text = res if type == "json":