fix(route): dcfever (#14106)
This commit is contained in:
parent
9a32aea50a
commit
8059ca76d8
|
|
@ -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'));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue