UNPKG

rsshub

Version:
55 lines (53 loc) 1.81 kB
import { n as init_esm_shims, t as __dirname } from "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import { t as ViewType } from "./types-D84BRIt4.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import { t as parseDate } from "./parse-date-BrP7mxXf.mjs"; import "./helpers-DxBp0Pty.mjs"; import { t as art } from "./render-BQo6B4tL.mjs"; import { t as got_default } from "./got-KxxWdaxq.mjs"; import path from "node:path"; //#region lib/routes/gelonghui/live.ts init_esm_shims(); const baseUrl = "https://www.gelonghui.com"; const route = { path: "/live", categories: ["finance"], view: ViewType.Articles, example: "/gelonghui/live", parameters: {}, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, radar: [{ source: ["gelonghui.com/live", "gelonghui.com/"] }], name: "实时快讯", maintainers: [], handler, url: "gelonghui.com/live" }; async function handler() { const { data: { result } } = await got_default(`${baseUrl}/api/live-channels/all/lives/v4`); const items = result.map((i) => ({ title: i.title || i.content, description: art(path.join(__dirname, "templates/live-e3094b38.art"), { i }), link: i.route, category: i.source, pubDate: parseDate(i.createTimestamp, "X") })); return { title: "格隆汇快讯-7x24小时市场快讯-财经市场热点", description: "格隆汇快讯栏目提供外汇投资实时行情,外汇投资交易,外汇投资炒股,证券等内容,实时更新,格隆汇未来将陆续开通台湾、日本、印度、欧洲等市场.", image: "https://cdn.gelonghui.com/static/web/www.ico.la.ico", link: `${baseUrl}/live`, item: items }; } //#endregion export { route };