修复豆瓣榜单问题 (#10887)

This commit is contained in:
港島小叔子 2022-09-25 20:47:31 +08:00 committed by GitHub
parent de48ec5015
commit 8ded6bd731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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,