From ffff5456e3bbd12fec719af5534a56d67a00e714 Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:24:54 +0800 Subject: [PATCH] fix(route/zaobao): Replace selector (#15880) * fix(route/zaobao): Replace selector. * Revert "fix(route/zaobao): Replace selector." This reverts commit 2ec2b6c3ef801d12117abbfa425b62bd1dbf1919. * . * . --- lib/routes/zaobao/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/zaobao/util.ts b/lib/routes/zaobao/util.ts index 4beab5d7d..e7015c207 100644 --- a/lib/routes/zaobao/util.ts +++ b/lib/routes/zaobao/util.ts @@ -38,7 +38,7 @@ const parseList = async ( }> => { const response = await got_ins.get(baseUrl + sectionUrl); const $ = load(response.data); - let data = $('.article-list').find('.article-type'); + let data = /realtime/.test(sectionUrl) ? $('.on-listing-pages') : $('.article-list').find('.article-type'); if (data.length === 0) { // for HK version data = $('.clearfix').find('.list-block');