UNPKG

rsshub

Version:
32 lines (31 loc) 957 B
import { i as rootUrl, t as ProcessItems } from "./utils-BmkB5W8V2.mjs"; //#region lib/routes/javlibrary/user.ts const route = { path: ["/users/:id/:type/:language?", "/:type/:id/:language?"], categories: ["multimedia"], example: "/javlibrary/userwatched/mangudai/en", parameters: { type: "Type, see below", id: "User id, can be found in URL", language: "Language, see below, Japanese by default, as `ja`" }, name: "Videos by user", maintainers: [ "nczitzk", "DIYgod", "junfengP" ], handler, description: `| Wanted | Watched | Owned | | ---------- | ----------- | --------- | | userwanted | userwatched | userowned |`, features: { nsfw: true } }; async function handler(ctx) { const id = ctx.req.param("id"); const type = ctx.req.param("type"); const language = ctx.req.param("language") ?? "ja"; return await ProcessItems(language, `${rootUrl}/${language}/${type}.php?list&u=${id}`); } //#endregion export { route };