import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{n,r}from"./utils-CvPj2Zih.mjs";import{load as i}from"cheerio";const a={path:`/:type`,categories:[`game`],example:`/indienova/article`,parameters:{type:"类型: `article` 文章，`development` 开发"},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`文章`,maintainers:[`GensouSakuya`,`kt286`],handler:o};async function o(a){let o=a.req.param(`type`),s=`https://indienova.com/indie-game-news/`;o===`development`&&(s=`https://indienova.com/indie-game-development/`);let c=i((await t(s)).data),l=r(c),u=await Promise.all(l.map(t=>e.tryGet(t.link,()=>n(t))));return{title:c(`head title`).text(),link:s,description:`独立游戏资讯 | indienova 独立游戏`,item:u}}export{a as route};