From b3be740e2fa684477dd976b0220cd7ababd6ce92 Mon Sep 17 00:00:00 2001 From: Bryan Date: Wed, 3 Aug 2022 14:27:48 +0800 Subject: [PATCH] fix(route): fix economics (#10344) * fix(route): fix economics * fix(route/economics): fix missing features image --- lib/v2/economist/full.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/economist/full.js b/lib/v2/economist/full.js index 93a790e85..e310bbe05 100644 --- a/lib/v2/economist/full.js +++ b/lib/v2/economist/full.js @@ -9,7 +9,7 @@ const getArticleDetail = async (link, ctx) => $('div.article-audio-player__center-tooltip').remove(); const nextData = JSON.parse($('head script[type="application/ld+json"]').text()); - const article = $('#new-article-template > div > div.css-wvfzu8 > div.css-mticar').html() + $('#new-article-template > div > div.css-wvfzu8 > div > div > section').html(); + const article = ($('figure[class^=css-]').first().parent().parent().html() || '') + $('p.article__body-text').parent().html(); const categories = nextData.keywords?.map((k) => k); return { article, categories };