mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-17 05:11:57 +08:00
fix(route): Remove share widget from CBC route (#13773)
CBC feed has "Social Sharing" in its feed. This PR removes it since it's not needed in RSS feed.
This commit is contained in:
@@ -41,7 +41,9 @@ module.exports = async (ctx) => {
|
||||
author = head.author.map((author) => author.name).join(' & ');
|
||||
}
|
||||
const pubDate = head.datePublished;
|
||||
const description = $('div[data-cy=storyWrapper]').html();
|
||||
const descriptionDom = $('div[data-cy=storyWrapper]');
|
||||
descriptionDom.find('div[class=share]').remove();
|
||||
const description = descriptionDom.html();
|
||||
|
||||
return { title, author, pubDate, description, link };
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user