mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): beijing/kw handling external links (#9123)
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
|
||||
const result = item.match(/urls\[i]='(.*?)';headers\[i]="(.*?)";year\[i]='(\d+)';month\[i]='(\d+)';day\[i]='(\d+)';/);
|
||||
return {
|
||||
title: cheerio.load(result[2])('a').attr('title') || result[2],
|
||||
link: `${rootUrl}${result[1]}`,
|
||||
link: new URL(result[1], rootUrl).href,
|
||||
pubDate: parseDate(`${result[3]}-${result[4]}-${result[5]}`, 'YYYY-MM-DD'),
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user