fix(route): fix author field for ft.com (#13400)
This commit is contained in:
parent
143a42f14a
commit
adf40af494
|
|
@ -28,8 +28,14 @@ module.exports = async (ctx) => {
|
|||
const $ = cheerio.load(response.data);
|
||||
|
||||
item.description = ProcessFeed($('article.js-article__content-body'));
|
||||
item.category = JSON.parse($('script[type="application/ld+json"]').eq(1).text()).itemListElement.map((e) => e.name);
|
||||
item.author = $('a.n-content-tag--author').text();
|
||||
item.category = [$('.n-content-tag--with-follow').text()].concat(
|
||||
$('.article__right-bottom a.concept-list__concept')
|
||||
.map((i, e) => $(e).text().trim())
|
||||
.get()
|
||||
);
|
||||
item.author = $('a.n-content-tag--author')
|
||||
.map((i, e) => $(e).text())
|
||||
.get();
|
||||
|
||||
return item;
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue