fix
This commit is contained in:
parent
2ea4ac4041
commit
058bc23b1a
@ -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")]
|
||||
|
||||
@ -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":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user