import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./utils-BSWRShyb.mjs";import{load as n}from"cheerio";const r={path:`/index/:media?`,categories:[`multimedia`],example:`/pianyuan/index`,parameters:{media:`类别，见下表，默认为首页`},features:{requireConfig:[{name:`PIANYUAN_COOKIE`,description:``}],requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`pianyuan.org/`],target:`/index`}],name:`最新资源`,maintainers:[`greatcodeeer`,`jerry1119`],handler:i,url:`pianyuan.org/`,description:`| 电影 | 剧集 |
| ---- | ---- |
| mv   | tv   |`};async function i(r){let i=r.req.param(`media`)??-1,a=`https://pianyuan.org/`,o=`电影和剧集`,s=a;i!==-1&&(s=`https://pianyuan.org/?cat=${i}`,i===`mv`?o=`电影`:i===`tv`?o=`剧集`:s=a);let c=n((await t.request(s,e)).data),l=c(`#main-container > div > div.col-md-10 > table > tbody > tr`).toArray().map(e=>c(e).find(`td.dt.prel.nobr > a`).attr(`href`));l.shift();let u=await t.ProcessFeed(l,e);return{title:`片源网`,description:o,link:a,item:u}}export{r as route};