import{t as e}from"./header-generator-D_8tgMao.mjs";import{t}from"./got-BBDj7u1e.mjs";import{load as n}from"cheerio";const r={path:`/author/:id`,categories:[`reading`],example:`/qidian/author/9639927`,parameters:{id:`作者 id, 可在作者页面 URL 找到`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`my.qidian.com/author/:id`]}],name:`作者`,maintainers:[`miles170`,`pseudoyu`],handler:i};async function i(r){let i=r.req.param(`id`),a=`https://my.qidian.com/author/${i}/`,o=n((await t(`https://m.qidian.com/author/${i}/`,{headerGeneratorOptions:e.MODERN_IOS})).data),{pageContext:s}=JSON.parse(o(`#vite-plugin-ssr_pageContext`).text()),c=s.pageProps.pageData,l=c.info.name,u=(c.allBook||[]).map(e=>({title:e.bName,author:l,category:e.cat,description:e.desc,link:`https://book.qidian.com/info/${e.bid}/`}));return{title:`${l} - 起点中文网`,description:c.info.desc,link:a,item:u}}export{r as route};