From 669448d746c2bb0ead3bd1f9c54de12f89951b16 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 3 Mar 2020 00:31:26 +0800 Subject: [PATCH] fix: smzdm haowen content, close #4140 --- lib/routes/smzdm/haowen.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/routes/smzdm/haowen.js b/lib/routes/smzdm/haowen.js index 0b8aacb831..e60d0a4400 100644 --- a/lib/routes/smzdm/haowen.js +++ b/lib/routes/smzdm/haowen.js @@ -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,