UNPKG

rsshub

Version:
45 lines (43 loc) 1.17 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import { t as ofetch_default } from "./ofetch-BIyrKU3Y.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$1 = tmp.attr("title"); const image = urlBase + tmp.attr("data-original"); return { title: `${title$1} ${tmp.find(".pic_text.text_right").text()}`, link: href, image, description: `豆瓣评分 ${tmp.find(".text_right.text_dy").text()}` }; }) }; } //#endregion export { route };