fix(route): baozimh newest chapter (#15224)

This commit is contained in:
JimenezLi 2024-04-14 02:15:53 +08:00 committed by GitHub
parent 373b598100
commit d6b6a276e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ async function handler(ctx) {
const response = await got(url);
const $ = load(response.data);
const comicTitle = $('div > div.pure-u-1-1.pure-u-sm-2-3.pure-u-md-3-4 > div > h1').text();
const list = $('#layout > div.comics-detail > div:nth-child(3) > div > div:nth-child(4) > div')
const list = $('#layout > div.comics-detail > div:nth-child(3) > div > div.pure-g')
.first() // 最新章节
.children()
.toArray()
.map((item) => {
const title = $(item).find('span').text();