rsshub
Version:
Make RSS Great Again!
40 lines (39 loc) • 1.02 kB
JavaScript
import { t as rofetch } from "./ofetch-C3ts-Hud.mjs";
import { load } from "cheerio";
//#region lib/routes/olevod/vodlist.ts
const route = {
path: "/vodlist",
categories: ["multimedia"],
example: "/olevod/vodlist",
radar: [{
source: ["www.olevod.one"],
target: "/vodlist"
}],
name: "最新视频",
maintainers: ["fang63625"],
handler,
features: { nsfw: true }
};
async function handler() {
const urlBase = "https://www.olevod.one";
const title = "欧乐影院 最新视频";
const $ = load(await rofetch(urlBase));
return {
title,
link: urlBase,
item: $(".cbox1 .vodlist_thumb.lazyload").toArray().map((item) => {
const tmp = $(item);
const href = urlBase + tmp.attr("href");
const title = tmp.attr("title");
const image = urlBase + tmp.attr("data-original");
return {
title: `${title} ${tmp.find(".pic_text.text_right").text()}`,
link: href,
image,
description: `豆瓣评分 ${tmp.find(".text_right.text_dy").text()}`
};
})
};
}
//#endregion
export { route };