UNPKG

rsshub

Version:
16 lines (11 loc) 450 B
const utils = require('./utils'); module.exports = async (ctx) => { const author = ctx.params.author; const url = ctx.params.category ? `https://home.gamer.com.tw/creationCategory.php?owner=${author}&c=${ctx.params.category}` : `https://home.gamer.com.tw/creation.php?owner=${author}`; const { title, items } = await utils.ProcessFeed(url, ctx); ctx.state.data = { title, link: url, item: items, }; };