fix: iqiyi dongman (#4137)

This commit is contained in:
hoilc
2020-03-08 23:58:51 +08:00
committed by GitHub
parent 46d1052e8a
commit 499937349a
+1 -4
View File
@@ -11,14 +11,11 @@ module.exports = async (ctx) => {
Host: 'www.iqiyi.com',
Referer: `http://www.iqiyi.com/${id}.html`,
},
responseType: 'document',
});
const data = response.data;
const $ = cheerio.load(data);
const description = $('span[data-moreorless="moreinfo"][itemprop="description"] span')
.text()
.split('\n')[0];
const description = $('.episodeIntro-brief').text();
const list = $('li[data-albumlist-elem="playItem"]');
ctx.state.data = {