rsshub
Version:
Make RSS Great Again!
44 lines (42 loc) • 1.13 kB
JavaScript
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 { 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 ofetch_default(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 };