UNPKG

rsshub

Version:
42 lines (39 loc) 1.33 kB
import { i as rootUrl, t as ProcessItems } from "./utils-BmkB5W8V2.mjs"; //#region lib/routes/javlibrary/star.ts const route = { path: "/star/:id/:language?/:mode?", categories: ["multimedia"], example: "/javlibrary/star/abbds/en", parameters: { id: "Star id, can be found in URL", language: "Language, see below, Japanese by default, as `ja`", mode: "Mode, see below, videos with comments (by date) by default, as `1`" }, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: true, supportBT: false, supportPodcast: false, supportScihub: false, nsfw: true }, name: "Videos by star", maintainers: ["nczitzk"], handler, description: `| videos with comments (by date) | everything (by date) | | ------------------------------ | -------------------- | | 1 | 2 | ::: tip See [Ranking](https://www.javlibrary.com/en/star_mostfav.php) to view stars by ranks. See [Directory](https://www.javlibrary.com/en/star_list.php) to view all stars. :::` }; async function handler(ctx) { const id = ctx.req.param("id"); const mode = ctx.req.param("mode") ?? "1"; const language = ctx.req.param("language") ?? "ja"; return await ProcessItems(language, `${rootUrl}/${language}/vl_star.php?list&s=${id}&mode=${mode}`); } //#endregion export { route };