UNPKG

rsshub

Version:
28 lines (27 loc) 973 B
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs"; import { t as parseDate } from "./parse-date-CjhZE69i.mjs"; //#region lib/routes/hanime/video.ts const route = { path: "/video", categories: ["anime"], example: "/hanime/video", name: "Recently updated", maintainers: ["EsuRt"], handler }; async function handler() { return { title: "Hanime", link: "https://hanime.tv/", item: (await rofetch("https://guest.freeanimehentai.net/api/v11/search_hvs", { headers: { Referer: "https://hanime.tv/" } })).map((item) => ({ title: item.name, description: `<b>Name:</b> ${item.name}<br><b>Brand:</b> ${item.brand}<br><b>Tags:</b> ${item.tags.join(", ")}<br><b>Description:</b> ${item.description}<br><img src="${item.cover_url}"><br><img src="${item.poster_url}">`, link: `https://hanime.tv/videos/hentai/${item.slug}`, pubDate: parseDate(item.created_at_unix, "X"), category: item.tags, author: item.brand })) }; } //#endregion export { route };