fix
This commit is contained in:
1 parent
edd960d900
commit
a0d5fbfa1d
3 files changed
+4
-1
No files matched your search
@@ -37,6 +37,7 @@ class baseComic:
|
|||||||
if not ciUtils.isUpdateComic():
|
if not ciUtils.isUpdateComic():
|
||||||
ntfy.sendMsg(f"开始下载 漫画:{book_name}",alert=True)
|
ntfy.sendMsg(f"开始下载 漫画:{book_name}",alert=True)
|
||||||
Comic.setCurrentDownLink(comic_href)
|
Comic.setCurrentDownLink(comic_href)
|
||||||
|
ComicPath.IS_UPDATE_COMIC = True
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
ntfy.sendMsg(f"{book_name} 已是最新",alert=True)
|
ntfy.sendMsg(f"{book_name} 已是最新",alert=True)
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ class ComicPath:
|
|||||||
ICONS_PATH = "icons"
|
ICONS_PATH = "icons"
|
||||||
COMIC_INFO_XML = "ComicInfo.xml"
|
COMIC_INFO_XML = "ComicInfo.xml"
|
||||||
TIME_SLEEP = 0.5
|
TIME_SLEEP = 0.5
|
||||||
|
IS_UPDATE_COMIC = False
|
||||||
|
|
||||||
#顶级路径
|
#顶级路径
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
from common.Constant import pathStr
|
from common.Constant import pathStr
|
||||||
|
from common.Constant import ComicPath
|
||||||
from common.Comic import ListComic
|
from common.Comic import ListComic
|
||||||
from common.Comic import Comic
|
from common.Comic import Comic
|
||||||
from common.BaseComicEntity import baseComic
|
from common.BaseComicEntity import baseComic
|
||||||
@@ -22,7 +23,7 @@ class comicEntity:
|
|||||||
def oneComic(cls,sleep=None):
|
def oneComic(cls,sleep=None):
|
||||||
c_url = Comic.getCurrentDownLink()
|
c_url = Comic.getCurrentDownLink()
|
||||||
if c_url == None: return None
|
if c_url == None: return None
|
||||||
title = htmlUtils.getXpathData('//div[@class="col"]/h5/text()',url=c_url,num=0,update=True)
|
title = htmlUtils.getXpathData('//div[@class="col"]/h5/text()',url=c_url,num=0,update=ComicPath.IS_UPDATE_COMIC)
|
||||||
#别名
|
#别名
|
||||||
#alias = htmlUtils.xpathData('//span[contains(@class,"bookid_alias")]/text()',num=1)
|
#alias = htmlUtils.xpathData('//span[contains(@class,"bookid_alias")]/text()',num=1)
|
||||||
icon = htmlUtils.getXpathData('//img[@class="img-thumbnail"]/@src',num=0)
|
icon = htmlUtils.getXpathData('//img[@class="img-thumbnail"]/@src',num=0)
|
||||||
|
|||||||
Reference in new issue
Block a user