fix
This commit is contained in:
1 parent
8096eee351
commit
f3ee7bccc2
1 file changed
+3
-5
+3
-5
@@ -13,9 +13,7 @@ class comicEntity:
|
|||||||
ListComic.setListComicName(books,"name")
|
ListComic.setListComicName(books,"name")
|
||||||
ListComic.setListComicChapterLink(books,"id",start_add=pathStr.getBaseUrl(url)+"/books/")
|
ListComic.setListComicChapterLink(books,"id",start_add=pathStr.getBaseUrl(url)+"/books/")
|
||||||
ListComic.setListComicUpdateAt(books,"updatedAt")
|
ListComic.setListComicUpdateAt(books,"updatedAt")
|
||||||
is_next = True
|
return baseComic.updateComics(chapters_xpath='//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
|
||||||
while is_next:
|
|
||||||
is_next = baseComic.updateComics(chapters_xpath='//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def oneComic(cls,sleep=None):
|
def oneComic(cls,sleep=None):
|
||||||
@@ -39,5 +37,5 @@ class comicEntity:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def start(cls,url):
|
def start(cls,url):
|
||||||
cls.downladsComcis(url)
|
is_next = cls.downladsComcis(url)
|
||||||
cls.oneComic()
|
while is_next: cls.oneComic()
|
||||||
Reference in new issue
Block a user