Skip to content

Commit

Permalink
修复豆瓣榜单问题 (#10887)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanqb authored Sep 25, 2022
1 parent de48ec5 commit 8ded6bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/v2/douban/other/weekly_best.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ module.exports = async (ctx) => {
link: `https://m.douban.com/subject_collection/${type}`,
description: infoResponse.data.description,

item: data.map(({ title, info, cover, url, rating, year, release_date, null_rating_reason, description }) => {
item: data.map(({ title, info, cover, cover_url, url, rating, year, release_date, null_rating_reason, description }) => {
const release = `${year}.${release_date}`;
const rate = rating ? `${rating.value.toFixed(1)}分` : null_rating_reason;

description = `标题:${title} <br> 影片信息:${info} <br> 上映日期:${release} <br> 评分:${rate} <br> <img src="${cover.url}"> <p>${description}</p>`;
if (cover && cover.url) {
cover_url = cover.url;
}
description = `标题:${title} <br> 影片信息:${info} <br> 上映日期:${release} <br> 评分:${rate} <br> <img src="${cover_url}"> <p>${description}</p>`;

return {
title,
Expand Down

0 comments on commit 8ded6bd

Please sign in to comment.