From bbb753b9e8237e3bd8cdf2df7b1f825e779eab9a Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:23:54 +0800 Subject: [PATCH] fix(route): Add category to ft.com feed & Update full text mechanism. (#13387) --- lib/v2/ft/myft.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/v2/ft/myft.js b/lib/v2/ft/myft.js index c5d7d0b90ce185..f7bd3aa92522bb 100644 --- a/lib/v2/ft/myft.js +++ b/lib/v2/ft/myft.js @@ -27,7 +27,8 @@ module.exports = async (ctx) => { const $ = cheerio.load(response.data); - item.description = ProcessFeed($('div.article__content-body')); + 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(); return item;