rsshub
Version:
Make RSS Great Again!
31 lines (29 loc) • 1.08 kB
JavaScript
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, o as rootUrl, r as defaultLanguage, t as ProcessItems } from "./utils--tBkZPQq.mjs";
//#region lib/routes/javlibrary/mostwanted.ts
const route = {
path: ["/videos/mostwanted/:language?/:mode?", "/mostwanted/:language?/:mode?"],
name: "Unknown",
maintainers: [],
handler,
description: `| Last Month | All Time |
| ---------- | -------- |
| 1 | 2 |`,
features: { nsfw: true }
};
async function handler(ctx) {
const mode = ctx.req.param("mode") ?? defaultMode;
const language = ctx.req.param("language") ?? defaultLanguage;
return await ProcessItems(language, `${rootUrl}/${language}/vl_mostwanted.php?list&mode=${mode}`, cache_default.tryGet);
}
//#endregion
export { route };