fix: AcFun用户投稿 (#4562)
This commit is contained in:
parent
276d86a76e
commit
1c5017cf7a
|
|
@ -16,8 +16,8 @@ module.exports = async (ctx) => {
|
|||
|
||||
const $ = cheerio.load(data);
|
||||
const title = $('title').text();
|
||||
const description = $('.tan .info').text();
|
||||
const list = $('#listVideo .contentView a').get();
|
||||
const description = $('.preview').text();
|
||||
const list = $('#ac-space-video-list a').get();
|
||||
|
||||
ctx.state.data = {
|
||||
title: title,
|
||||
|
|
@ -28,7 +28,7 @@ module.exports = async (ctx) => {
|
|||
const $ = cheerio.load(item);
|
||||
|
||||
const itemTitle = $('p.title').text();
|
||||
const itemImg = $('figure img').attr('data-original');
|
||||
const itemImg = $('figure img').attr('src');
|
||||
const itemUrl = $('a').attr('href');
|
||||
const itemDate = $('.date').text();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue