UNPKG

rsshub

Version:
29 lines (28 loc) 996 B
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs"; import { t as parseDate } from "./parse-date-CjhZE69i.mjs"; import { t as timezone } from "./timezone-DE--ze1V.mjs"; //#region lib/routes/maoyan/upcoming.ts const route = { path: "/upcoming", categories: ["multimedia"], example: "/maoyan/upcoming", parameters: {}, name: "即将上映", maintainers: ["HenryQW", "JackyST0"], handler }; async function handler() { return { title: "猫眼电影 - 即将上映", link: "https://maoyan.com/films?showType=2", description: "猫眼电影 - 即将上映", item: (await rofetch("https://m.maoyan.com/ajax/comingList?token=")).coming.map((item) => ({ title: `${item.nm} ${item.comingTitle}`, description: `<img src="${item.img.replace("w.h", "1000.1000")}"> <br> 演员:${item.star} <br> 上映信息:${item.showInfo || item.comingTitle}`, link: `https://maoyan.com/films/${item.id}`, pubDate: timezone(parseDate(item.rt), 8) })) }; } //#endregion export { route };