fix: smzdm haowen content, close #4140

This commit is contained in:
DIYgod 2020-03-03 00:31:26 +08:00
parent 61cfa78c3a
commit 669448d746
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ module.exports = async (ctx) => {
const response = await got.get(itemUrl);
const $ = cheerio.load(response.data);
const description = $('article > div').html();
const content = $('#articleId');
content.find('.item-name').remove();
content.find('.recommend-tab').remove();
const description = content.html();
const single = {
title: title,