From 8a6af565291bdf3f0dd7a4c7e1e597d1adf817dd Mon Sep 17 00:00:00 2001 From: Chenyang Shi Date: Mon, 1 Jul 2019 11:11:10 +0800 Subject: [PATCH] fix: bilibili url (#2521) --- lib/routes/bilibili/partion-ranking.js | 2 +- lib/routes/bilibili/video.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/bilibili/partion-ranking.js b/lib/routes/bilibili/partion-ranking.js index 8bacba35b..029479a38 100644 --- a/lib/routes/bilibili/partion-ranking.js +++ b/lib/routes/bilibili/partion-ranking.js @@ -40,7 +40,7 @@ module.exports = async (ctx) => { item = { title: `${item.title} - ${item.author}`, - description: `${item.description}
Tags:${item.tag}`, + description: `${item.description}
Tags:${item.tag}`, pubDate: new Date(item.pubdate).toUTCString(), link: `https://www.bilibili.com/video/av${item.id}`, }; diff --git a/lib/routes/bilibili/video.js b/lib/routes/bilibili/video.js index 0b994c6d1..208b6498b 100644 --- a/lib/routes/bilibili/video.js +++ b/lib/routes/bilibili/video.js @@ -23,7 +23,7 @@ module.exports = async (ctx) => { data.data.vlist && data.data.vlist.map((item) => ({ title: item.title, - description: `${item.description}
`, + description: `${item.description}
`, pubDate: new Date(item.created * 1000).toUTCString(), link: `https://www.bilibili.com/video/av${item.aid}`, })),