import{t as e}from"./got-BBDj7u1e.mjs";import{t}from"./invalid-parameter-DLv2wPKB.mjs";import{t as n}from"./valid-host-CeDzTNj_.mjs";import{i as r,n as i,r as a}from"./utils-DTti4uOY.mjs";import{load as o}from"cheerio";const s={path:`/model/:username/:language?/:sort?/:img?`,categories:[`multimedia`],view:3,example:`/pornhub/model/stacy-starando`,parameters:{language:`language, see below. defaults to www`,username:"username, part of the url e.g. `pornhub.com/model/stacy-starando`",sort:`sorting method, see below. Defaults to mr (most recent)`,img:"show images, set to `img=1` to enable"},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1,nsfw:!0},radar:i(`/model/:username`),name:`Model`,maintainers:[`I2IMk`,`queensferryme`],handler:c};async function c(i){let{language:s=`www`,username:c,sort:l=``,img:u}=i.req.param(),d=`https://${s}.pornhub.com/model/${c}/videos${l?`?o=${l}`:``}`;if(!n(s))throw new t(`Invalid language`);let{data:f}=await e(d,{headers:a}),p=o(f),m=u===`img=1`,h=p(`#mostRecentVideosSection .videoBox`).toArray().map(e=>r(p(e),m));return{title:p(`h1`).first().text(),description:p(`section.aboutMeSection`).text().trim(),link:d,image:p(`#getAvatar`).attr(`src`),language:p(`html`).attr(`lang`),item:h}}export{s as route};