UNPKG

rsshub

Version:
38 lines (36 loc) 1.03 kB
import "./dist-Bog6z_OM.mjs"; import "./config-MQ-7ebJ_.mjs"; import "./logger-C4avouvV.mjs"; import { t as ofetch_default } from "./ofetch-DKl_Ma9g.mjs"; import "./parse-date-r5WDWHno.mjs"; import { t as parseItems } from "./parser-DCt-t_XL.mjs"; import { load } from "cheerio"; //#region lib/routes/collabo-cafe/category.ts const handler = async (ctx) => { const { category } = ctx.req.param(); const baseUrl = `https://collabo-cafe.com/events/category/${category}`; return { title: "分类", link: baseUrl, item: parseItems(load(await ofetch_default(baseUrl))) }; }; const route = { path: "/category/:category", categories: ["anime"], example: "/collabo-cafe/category/cafe", parameters: { category: "Category, refer to the original website (ジャンル別)" }, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, name: "分类", maintainers: ["cokemine"], handler }; //#endregion export { handler, route };