fix(route/sis001): standardize guid for different base URLs (#17275)

This commit is contained in:
Keo
2024-10-24 23:49:39 +08:00
committed by GitHub
parent b9e94f07c5
commit 32bebcaff9
+1
View File
@@ -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());