diff --git a/lib/routes/natgeo/natgeo.ts b/lib/routes/natgeo/natgeo.ts index 72bcb226a..ead22e96a 100644 --- a/lib/routes/natgeo/natgeo.ts +++ b/lib/routes/natgeo/natgeo.ts @@ -16,14 +16,14 @@ async function loadContent(link) { .replaceAll(/ /gi, ' ') .trim(); - $('.splide__arrows, .slide-control').remove(); + $('.splide__arrows, .slide-control, [class^="ad-"], style').remove(); let description = ($('article').eq(0).html() ?? '') + ($('article').eq(1).html() ?? ''); if (/photo|gallery/.test(link)) { description = $('#content-album').html() + description; } return { - title: $('title').text(), + title: $('h1.content-title').text().trim(), pubDate: parseDate(dtStr), description, category: $('.content-tag a')