UNPKG

rsshub

Version:
32 lines (31 loc) 1.01 kB
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs"; import { t as parseDate } from "./parse-date-CjhZE69i.mjs"; //#region lib/routes/nosetime/home.ts const route = { path: "/home", categories: ["new-media"], example: "/nosetime/home", name: "首页", maintainers: ["kt286"], handler }; async function handler() { const link = "https://www.nosetime.com/perfume.php"; return { title: "香水时代", link, description: "最新香水评论|发现香水圈的新鲜事 - 香水时代NoseTime.com", item: (await rofetch("https://www.nosetime.com/app/smart.php?page=1&type=discovery", { headers: { Referer: link }, responseType: "json" })).items.map((item) => ({ title: `${"★★★★★☆☆☆☆☆".slice(5 - item.uwscore, 10 - item.uwscore)} ${item.ifullname}`, description: item.udcontent, pubDate: parseDate(item.uface * 1e3), link: `https://www.nosetime.com/xiangshui/${item.iid}-${item.iurl}.html`, author: item.uname })) }; } //#endregion export { route };