mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-21 12:49:53 +08:00
fix(route/apnews): filter out items with no link. (#13479)
This commit is contained in:
@@ -17,6 +17,7 @@ module.exports = async (ctx) => {
|
||||
title: $(e).find('span.PagePromoContentIcons-text').text(),
|
||||
link: $(e).find('a').attr('href'),
|
||||
}))
|
||||
.filter((e) => typeof e.link === 'string')
|
||||
.map((item) =>
|
||||
ctx.cache.tryGet(item.link, async () => {
|
||||
const { data: response } = await got(item.link);
|
||||
|
||||
Reference in New Issue
Block a user