mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): duplicate posts from Sakurazaka46 news & blog (#10159)
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = async (ctx) => {
|
||||
return {
|
||||
title: item.text(),
|
||||
author: item.find('.name').text(),
|
||||
link: `${rootUrl}${item.attr('href')}`,
|
||||
link: `${rootUrl}${item.attr('href').split('?')[0]}`,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
return {
|
||||
title: item.find('.lead').text(),
|
||||
link: `${rootUrl}${item.attr('href')}`,
|
||||
link: `${rootUrl}${item.attr('href').split('?')[0]}`,
|
||||
pubDate: parseDate(item.find('.date').text()),
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user