From 1c5017cf7a553d90c1055ad515135fca06bc19f0 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Tue, 28 Apr 2020 11:18:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20AcFun=E7=94=A8=E6=88=B7=E6=8A=95?= =?UTF-8?q?=E7=A8=BF=20(#4562)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/acfun/video.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/acfun/video.js b/lib/routes/acfun/video.js index fd4a707f3..f5ac939f2 100644 --- a/lib/routes/acfun/video.js +++ b/lib/routes/acfun/video.js @@ -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();