rsshub
Version:
Make RSS Great Again!
29 lines (28 loc) • 822 B
JavaScript
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs";
import LZString from "lz-string";
//#region lib/routes/ebb/index.ts
const route = {
path: "/",
categories: ["anime"],
example: "/ebb",
name: "新番連載",
maintainers: ["Tsuki"],
handler
};
async function handler() {
const url = "https://ebb.io/_/anime_list";
const response = await rofetch(url, { headers: { Referer: url } });
return {
title: "ebb.io",
link: "https://ebb.io",
description: "最新連載",
item: JSON.parse(LZString.decompressFromUTF16(response)).map((item) => ({
title: item.name_chi,
link: `https://ebb.io/anime/${item.anime_id}x${item.season_id}`,
description: `${item.season_title} - ${item.episode_title}`,
guid: `${item.anime_id}-${item.season_id}-${item.episode_title}`
}))
};
}
//#endregion
export { route };