This commit is contained in:
cwx committed 2023-03-31 23:07:13 +08:00
1 parent 44a775a408
commit 94c5032758
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -24,8 +24,7 @@ class comicEntity:
@classmethod @classmethod
def oneComic(cls,c_url,sleep=None,date=comicInfo.getUpdateAt()): def oneComic(cls,c_url,sleep=None,date=comicInfo.getUpdateAt()):
if c_url == None: return None if c_url == None: return None
#漫画名 title = htmlUtils.xpathData('//div[@class="col"]/h5/text()',url=c_url,num=0,update=True)
title = htmlUtils.xpathData('//div[@class="col"]/h5/text()',url=c_url,num=0)
#别名 #别名
#alias = htmlUtils.xpathData('//span[contains(@class,"bookid_alias")]/text()',num=1) #alias = htmlUtils.xpathData('//span[contains(@class,"bookid_alias")]/text()',num=1)
icon = htmlUtils.xpathData('//img[@class="img-thumbnail"]/@src',num=0) icon = htmlUtils.xpathData('//img[@class="img-thumbnail"]/@src',num=0)
+2 -2
View File
@@ -15,7 +15,7 @@ class comicCommon:
@classmethod @classmethod
def comicChapterDownload(cls,chapter_url): def comicChapterDownload(cls,chapter_url):
x = cls.baseComicData(chapter_url) x = cls.baseComicData(chapter_url,update=True)
book_name = x.get("bookName") book_name = x.get("bookName")
chapter_name = x.get("chapterName") chapter_name = x.get("chapterName")
#fileUtils.saveConfComicChapterInfo(chapterName,x,bookName) #fileUtils.saveConfComicChapterInfo(chapterName,x,bookName)
@@ -34,7 +34,7 @@ class comicCommon:
base_url = comicInfo.getBaseUrl(chapter_url) base_url = comicInfo.getBaseUrl(chapter_url)
chapter_api_url = base_url+chapter_api_path chapter_api_url = base_url+chapter_api_path
ntfy.sendMsg(f"chapterApiUrl= {chapter_api_url}",alert=False) 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: if data != None:
data = data.get("chapter") data = data.get("chapter")
(chapter_name,images) = [data.get("name"),data.get("images")] (chapter_name,images) = [data.get("name"),data.get("images")]