fix: filter out image placeholder

This commit is contained in:
zph 2021-01-03 22:26:42 +08:00
parent 1793efddfc
commit 6ffc525eeb
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ module.exports = async (ctx) => {
$('.related__wrap').remove();
$('aside').remove();
$('svg.monogramTLogo').remove();
$('.image__placeholder--1CF-F').remove();
const description = ($('.contentHeader__image--1pFzw').html() || $('.contentHeader--fullBleed__image--2jdH0').html() || '') + ($('.contentHeader__deck--3A9FE').html() || '') + $('#content--body').html();
const author = $('.byline__name--2MpUW').clone().children().remove().end().text();