fix: AcFun用户投稿 (#4562)

This commit is contained in:
Ethan Shen 2020-04-28 11:18:17 +08:00 committed by GitHub
parent 276d86a76e
commit 1c5017cf7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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();