import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{t as r}from"./timezone-keeL11Io.mjs";import{n as i,t as a}from"./utils-D1fXcjiv.mjs";import{load as o}from"cheerio";const s={path:`/recommend`,categories:[`game`],example:`/yxdown/recommend`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`yxdown.com/`]}],name:`精彩推荐`,maintainers:[`nczitzk`],handler:c,url:`yxdown.com/`};async function c(){let s=`${i}/news/`,c=await a(),l=o((await n(s,{headers:{cookie:c}})).data),u=l(`ul li a b`).toArray().map(e=>(e=l(e),{title:e.text(),link:e.parent().attr(`href`)}));return{title:`精彩推荐 - 游讯网`,link:s,item:await Promise.all(u.map(i=>e.tryGet(i.link,async()=>{let e=o((await n(i.link,{headers:{cookie:c}})).data);return e(`h1, .intro`).remove(),i.description=e(`.news`).html(),i.pubDate=r(t(e(`meta[property="og:release_date"]`).attr(`content`)),8),i})))}}export{s as route};