fix: 修复cnbeta内容提取不完整bug (#2334)

* fix: 修复cnbeta内容提取不完整bug

* Update utils.js

* Update utils.js
This commit is contained in:
Cloud
2019-06-06 11:54:16 +08:00
committed by DIYgod
parent 6023bb96bb
commit 45cfbebb52

View File

@@ -30,9 +30,12 @@ async function load(link) {
}); });
// 提取内容 // 提取内容
const description = $('.article-content').html(); const description = $('.article-summary p').html() + '<br>' + $('.article-content').html();
return { description, pubDate }; // 稿源
const author = $('.source a span').text();
return { description, pubDate, author };
} }
const ProcessFeed = async (list, caches) => { const ProcessFeed = async (list, caches) => {