mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: Nintendo (#2313)
This commit is contained in:
@@ -4,9 +4,9 @@ const util = require('./utils');
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://www.nintendo.com.hk/data/json/switch_software.json`,
|
||||
url: 'https://www.nintendo.com.hk/data/json/switch_software.json',
|
||||
});
|
||||
const data = response.data.slice(0, 9);
|
||||
const data = response.data.slice(0, 9).filter(({ link }) => link.startsWith('https://'));
|
||||
|
||||
// 获取游戏描述
|
||||
const result = await util.ProcessItem(data, ctx.cache);
|
||||
|
||||
Reference in New Issue
Block a user