Skip to content

Commit

Permalink
fix(route/sis001): standardize guid for different base URLs (#17275)
Browse files Browse the repository at this point in the history
  • Loading branch information
keocheung authored Oct 24, 2024
1 parent b9e94f0 commit 32bebca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/routes/sis001/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 32bebca

Please sign in to comment.