mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat: update news content (#3706)
This commit is contained in:
@@ -42,7 +42,7 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
// 解析html内容
|
||||
const $ = cheerio.load(article.body);
|
||||
const content = $('.article_wrapper .mainLayer .content').html();
|
||||
const content = $('.article_wrapper .mainLayer .content').html() || $('.contentBox .article .detail').html();
|
||||
// 存放到缓存区
|
||||
ctx.cache.set(cacheKey, content);
|
||||
entity.description = content;
|
||||
|
||||
Reference in New Issue
Block a user