UNPKG

rsshub

Version:
54 lines (52 loc) 1.54 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 "./cache-Bo__VnGm.mjs"; import "./helpers-DxBp0Pty.mjs"; import "./got-KxxWdaxq.mjs"; import { t as rss_parser_default } from "./rss-parser-Dtop7M8f.mjs"; import { i as processItems } from "./utils-BUZ663-i.mjs"; //#region lib/routes/chikubi/nipple-video-maker.ts const route = { path: "/nipple-video-maker/:keyword", categories: ["multimedia"], example: "/chikubi/nipple-video-maker/nipple-video-maker-nh", parameters: { keyword: "Keyword" }, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false, nsfw: true }, name: "AVメーカー", maintainers: ["SnowAgar25"], handler, radar: [{ title: "AVメーカー", source: ["chikubi.jp/nipple-video-maker/:keyword"], target: "/nipple-video-maker/:keyword" }] }; async function handler(ctx) { const { keyword } = ctx.req.param(); const baseUrl = "https://chikubi.jp"; const url = `/nipple-video-maker/${encodeURIComponent(keyword)}`; const feed = await rss_parser_default.parseURL(`${baseUrl}${url}/feed`); const items = await processItems(feed.items.map((item) => ({ title: item.title, link: item.link }))); return { title: `AVメーカー: ${feed.title?.split("-")[0]} - chikubi.jp`, link: `${baseUrl}${url}`, item: items }; } //#endregion export { route };