rsshub
Version:
Make RSS Great Again!
46 lines (44 loc) • 1.25 kB
JavaScript
import "./esm-shims-CzJ_djXG.mjs";
import "./config-C37vj7VH.mjs";
import "./dist-BInvbO1W.mjs";
import "./logger-Czu8UMNd.mjs";
import "./ofetch-BIyrKU3Y.mjs";
import "./helpers-DxBp0Pty.mjs";
import { t as got_default } from "./got-KxxWdaxq.mjs";
//#region lib/routes/douban/other/ustop.ts
const route = {
path: "/movie/ustop",
categories: ["social-media"],
example: "/douban/movie/ustop",
parameters: {},
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
name: "北美票房榜",
maintainers: ["DIYgod"],
handler
};
async function handler() {
return {
title: "豆瓣电影北美票房榜",
link: "https://movie.douban.com/chart",
item: (await got_default({
method: "get",
url: "https://api.douban.com/v2/movie/us_box?apikey=0df993c66c0c636e29ecbb5344252a4a"
})).data.subjects.map((item) => {
item = item.subject;
return {
title: item.title,
description: `标题:${item.title}<br> 影片类型:${item.genres.join(" | ")} <br>评分:${item.rating.stars === "00" ? "无" : item.rating.average} <br/> <img src="${item.images.large}">`,
link: item.alt
};
})
};
}
//#endregion
export { route };