diff --git a/lib/v2/douban/other/weekly_best.js b/lib/v2/douban/other/weekly_best.js
index 3f0289787..47a4bcc5c 100644
--- a/lib/v2/douban/other/weekly_best.js
+++ b/lib/v2/douban/other/weekly_best.js
@@ -1,4 +1,6 @@
const got = require('@/utils/got');
+const { art } = require('@/utils/render');
+const path = require('path');
module.exports = async (ctx) => {
const type = ctx.params.type || 'movie_weekly_best';
@@ -28,17 +30,22 @@ module.exports = async (ctx) => {
link: `https://m.douban.com/subject_collection/${type}`,
description: infoResponse.data.description,
- item: data.map(({ title, info, cover, cover_url, url, rating, year, release_date, null_rating_reason, description }) => {
- const release = `${year}.${release_date}`;
+ item: data.map(({ title, cover, cover_url, url, rating, null_rating_reason, description, card_subtitle, photos }) => {
const rate = rating ? `${rating.value.toFixed(1)}分` : null_rating_reason;
if (cover && cover.url) {
cover_url = cover.url;
}
- description = `标题:${title}
影片信息:${info}
上映日期:${release}
评分:${rate}
${description}
`; return { title, - description, + description: art(path.join(__dirname, '../templates/weekly_best.art'), { + title, + card_subtitle, + description, + rate, + cover_url, + photos, + }), link: url, }; }), diff --git a/lib/v2/douban/templates/weekly_best.art b/lib/v2/douban/templates/weekly_best.art new file mode 100644 index 000000000..d7151b645 --- /dev/null +++ b/lib/v2/douban/templates/weekly_best.art @@ -0,0 +1,10 @@ +标题:{{title}}
+评分:{{rate}}
+标签:{{card_subtitle}}
+影片信息:{{description}}
+
+
+ {{each photos}}
+
+ {{/each}}
+