From f0c3a2d4528748d99e15336b420e842406bdb237 Mon Sep 17 00:00:00 2001 From: Tsung-Han Yu <14802181+johan456789@users.noreply.github.com> Date: Wed, 17 Sep 2025 05:20:05 +0800 Subject: [PATCH] fix(route/natgeo): filter out irrelevant items (#20076) --- lib/routes/natgeo/natgeo.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/natgeo/natgeo.ts b/lib/routes/natgeo/natgeo.ts index ead22e96a..3de183334 100644 --- a/lib/routes/natgeo/natgeo.ts +++ b/lib/routes/natgeo/natgeo.ts @@ -66,6 +66,7 @@ async function handler(ctx) { const urlList = $('.article-link-content h4') .toArray() + .filter((i) => $(i).closest('.article-link-right').length === 0) // 移除右側熱門精選 .map((i) => ({ link: $(i).find('a[href]').first().attr('href'), }))