fix(route): dcfever (#14106)

This commit is contained in:
Tony 2023-12-23 19:44:54 +00:00 committed by GitHub
parent 9a32aea50a
commit 8059ca76d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -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'));