From 32bebcaff931a7b487c394ea52a91e79227b7373 Mon Sep 17 00:00:00 2001 From: Keo Date: Thu, 24 Oct 2024 23:49:39 +0800 Subject: [PATCH] fix(route/sis001): standardize guid for different base URLs (#17275) --- lib/routes/sis001/common.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/sis001/common.ts b/lib/routes/sis001/common.ts index 352866c79..92ee06aea 100644 --- a/lib/routes/sis001/common.ts +++ b/lib/routes/sis001/common.ts @@ -43,6 +43,7 @@ async function getThread(cookie: string, item: DataItem) { const response = await got(item.link, { headers: { cookie } }); const $ = load(response.data); + item.guid = item.link?.replace(/^https?:\/\/.+?\//, 'https://www.sis001.com/'); item.category = $('.posttags a') .toArray() .map((a) => $(a).text());