Skip to content

Commit

Permalink
fix(route): Add category to ft.com feed & Update full text mechanism. (
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Sep 25, 2023
1 parent af1c20a commit bbb753b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/v2/ft/myft.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bbb753b

Please sign in to comment.