From 3a4d8db249b1c5c9095f1b81335d0616035b367b Mon Sep 17 00:00:00 2001 From: Antesam Date: Fri, 17 May 2024 14:06:05 +0100 Subject: [PATCH] fix(route): PornHub pornstar pages (#15616) * Update pornstar.ts Update video section selector * Update pornstar.ts Fix pornstar URL - it is different to how models URL structured --- lib/routes/pornhub/pornstar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/pornhub/pornstar.ts b/lib/routes/pornhub/pornstar.ts index dc02e412f4af02..5bbc845a9ac866 100644 --- a/lib/routes/pornhub/pornstar.ts +++ b/lib/routes/pornhub/pornstar.ts @@ -36,14 +36,14 @@ export const route: Route = { async function handler(ctx) { const { language = 'www', username, sort = 'mr' } = ctx.req.param(); - const link = `https://${language}.pornhub.com/pornstar/${username}/videos?o=${sort}`; + const link = `https://${language}.pornhub.com/pornstar/${username}?o=${sort}`; if (!isValidHost(language)) { throw new InvalidParameterError('Invalid language'); } const { data: response } = await got(link, { headers }); const $ = load(response); - const items = $('#mostRecentVideosSection .videoBox') + const items = $('#pornstarsVideoSection .videoBox') .toArray() .map((e) => parseItems($(e)));