mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): dcfever (#14106)
This commit is contained in:
@@ -10,7 +10,7 @@ const parseItem = (item, tryGet) =>
|
||||
tryGet(item.link, async () => {
|
||||
const { data: response } = await got(item.link);
|
||||
const $ = cheerio.load(response);
|
||||
const content = $('div[itemprop="articleBody"]');
|
||||
const content = $('div[itemprop="articleBody"], .column_article_content_html');
|
||||
|
||||
const pageLinks = $('.article_multi_page a')
|
||||
.not('.selected')
|
||||
@@ -41,6 +41,13 @@ const parseItem = (item, tryGet) =>
|
||||
}
|
||||
});
|
||||
|
||||
content.find('iframe').each((_, e) => {
|
||||
e = $(e);
|
||||
if (e.attr('src').startsWith('https://www.facebook.com/plugins/like.php')) {
|
||||
e.remove();
|
||||
}
|
||||
});
|
||||
|
||||
item.description = content.html();
|
||||
item.pubDate = parseDate($('meta[property="article:published_time"]').attr('content'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user