UNPKG

rsshub

Version:
36 lines (33 loc) 1.35 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import "./parse-date-BrP7mxXf.mjs"; import { t as cache_default } from "./cache-Bo__VnGm.mjs"; import "./helpers-DxBp0Pty.mjs"; import "./render-BQo6B4tL.mjs"; import "./got-KxxWdaxq.mjs"; import { a as defaultMode, n as defaultGenre, o as rootUrl, r as defaultLanguage, t as ProcessItems } from "./utils--tBkZPQq.mjs"; //#region lib/routes/javlibrary/genre.ts const route = { path: ["/videos/genre/:genre?/:language?/:mode?", "/genre/:genre?/:language?/:mode?"], name: "Unknown", maintainers: [], handler, description: `| videos with comments (by date) | everything (by date) | | ------------------------------ | -------------------- | | 1 | 2 | ::: tip See [Categories](https://www.javlibrary.com/en/genres.php) to view all categories. :::`, features: { nsfw: true } }; async function handler(ctx) { const mode = ctx.req.param("mode") ?? defaultMode; const genre = ctx.req.param("genre") ?? defaultGenre; const language = ctx.req.param("language") ?? defaultLanguage; return await ProcessItems(language, `${rootUrl}/${language}/vl_genre.php?list&g=${genre}&mode=${mode}`, cache_default.tryGet); } //#endregion export { route };