fix
This commit is contained in:
1 parent
1e61a38d62
commit
9194a1b603
1 file changed
+5
-5
+5
-5
@@ -13,7 +13,9 @@ 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")
|
||||||
return baseComic.updateComics(chapters_xpath='//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
|
is_next = True
|
||||||
|
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):
|
||||||
@@ -37,7 +39,5 @@ class comicEntity:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def start(cls,url):
|
def start(cls,url):
|
||||||
is_next = True
|
cls.downladsComcis(url)
|
||||||
while is_next:
|
cls.oneComic()
|
||||||
is_next = cls.downladsComcis(url)
|
|
||||||
cls.oneComic()
|
|
||||||
Reference in new issue
Block a user