fix(route): 同步包子漫画页面字段变动 (#12575)

This commit is contained in:
YsMox
2023-05-28 23:26:20 +08:00
committed by GitHub
parent 728490130e
commit 896d9b6dc8
+1 -1
View File
@@ -12,7 +12,7 @@ module.exports = async (ctx) => {
const response = await got.get(url);
const $ = cheerio.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(2) > div')
const list = $('#layout > div.comics-detail > div:nth-child(3) > div > div:nth-child(4) > div')
.map((_, item) => {
const title = $(item).find('span').text();
const link = rootUrl + $(item).find('a').attr('href');