From db6eb1c96c6443427078d36a79d37354f28a96a5 Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Sat, 6 Apr 2024 18:54:30 +0800 Subject: [PATCH] fix(route/apnews): Refine link selector. (#15131) --- lib/routes/apnews/topics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/apnews/topics.ts b/lib/routes/apnews/topics.ts index ee90f90a144d90..e0c64c18469932 100644 --- a/lib/routes/apnews/topics.ts +++ b/lib/routes/apnews/topics.ts @@ -36,7 +36,7 @@ async function handler(ctx) { const $ = load(response.data); const items = await Promise.all( - $('.PagePromo-content bsp-custom-headline') + $(':is(.PagePromo-content, .PageListStandardE-leadPromo-info) bsp-custom-headline') .get() .slice(0, ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit')) : Infinity) .map((e) => ({