From d59e0cf5f760073ee78c715bcf81287ed0046a57 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 23 Jan 2023 10:07:39 +0800 Subject: [PATCH] fix --- entity/BaoZi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entity/BaoZi.py b/entity/BaoZi.py index d9e9cdb..06f0f69 100644 --- a/entity/BaoZi.py +++ b/entity/BaoZi.py @@ -47,7 +47,9 @@ class comicEntity: chapters = htmlUtils.xpathData('//div[@class="chapter-content-listing"]//a[@class="wp-manga-chapterlist"]/text()',not_eq=' ',url=chapters_url) chapter_href = htmlUtils.xpathData('//div[@class="chapter-content-listing"]//a[@class="wp-manga-chapterlist"]/@href',url=chapters_url) #chapter_href = htmlUtils.xpathData('//div[@class="chapter-content-listing"]//a[@class="wp-manga-chapter"]/@href',url=c_url,next_xpath='//div[@class="chapter-content-listing"]//a[@class="c-chapter-readmore"]/@href') - + sort_chapters = chapters[::-1] + sort_chapter_href = chapter_href[::-1] + baseComic.oneComic(url=c_url,title=title,author=author, - icon=icon,tags=tags,dep=dep,chapters=chapters,chapter_href=chapter_href, + icon=icon,tags=tags,dep=dep,chapters=sort_chapters,chapter_href=sort_chapter_href, alias=None) \ No newline at end of file