rsshub
Version:
Make RSS Great Again!
61 lines (56 loc) • 1.62 kB
JavaScript
import "./dist-Bog6z_OM.mjs";
import "./config-MQ-7ebJ_.mjs";
import "./logger-C4avouvV.mjs";
import "./ofetch-DKl_Ma9g.mjs";
import "./parse-date-r5WDWHno.mjs";
import "./is-worker-DESPicPc.mjs";
import "./cache-SV6W5EPy.mjs";
import "./helpers-Bo4JQYdN.mjs";
import "./got-CO-ndVl2.mjs";
import { t as utils_default } from "./utils-D1sOR88Z.mjs";
//#region lib/routes/javdb/rankings.ts
const route = {
path: "/rankings/:category?/:time?",
categories: ["multimedia"],
example: "/javdb/rankings",
parameters: {
category: "分类,见下表,默认为 `有碼`",
time: "时间,见下表,默认为 `日榜`"
},
features: {
requireConfig: [{
name: "JAVDB_SESSION",
description: "JavDB登陆后的session值,可在控制台的cookie下查找 `_jdb_session` 的值,即可获取",
optional: true
}],
requirePuppeteer: false,
antiCrawler: true,
supportBT: false,
supportPodcast: false,
supportScihub: false,
nsfw: true
},
radar: [{
source: ["javdb.com/"],
target: ""
}],
name: "排行榜",
maintainers: ["nczitzk"],
handler,
url: "javdb.com/",
description: `分类
| 有碼 | 無碼 | 歐美 |
| -------- | ---------- | ------- |
| censored | uncensored | western |
时间
| 日榜 | 週榜 | 月榜 |
| ----- | ------ | ------- |
| daily | weekly | monthly |`
};
async function handler(ctx) {
const category = ctx.req.param("category") ?? "censored";
const currentUrl = `/rankings/movies?p=${ctx.req.param("time") ?? "daily"}&t=${category}`;
return await utils_default.ProcessItems(ctx, currentUrl, "JavDB");
}
//#endregion
export { route };