修复豆瓣榜单问题 (#10887)
This commit is contained in:
parent
de48ec5015
commit
8ded6bd731
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue