diff --git a/lib/routes/bilibili/linkNews.js b/lib/routes/bilibili/linkNews.js index da7dc76d7..c8cb68f71 100644 --- a/lib/routes/bilibili/linkNews.js +++ b/lib/routes/bilibili/linkNews.js @@ -30,7 +30,6 @@ module.exports = async (ctx) => { title: `bilibili ${productTitle}公告`, link: `https://link.bilibili.com/p/eden/news#/?tab=${product}&tag=all&page_no=1`, description: `bilibili ${productTitle}公告`, - lastBuildDate: new Date().toUTCString(), item: data && data.map((item) => ({ diff --git a/lib/routes/bilibili/liveArea.js b/lib/routes/bilibili/liveArea.js index fddfa1c54..a7d833d31 100644 --- a/lib/routes/bilibili/liveArea.js +++ b/lib/routes/bilibili/liveArea.js @@ -63,7 +63,6 @@ module.exports = async (ctx) => { title: `哔哩哔哩直播-${parentTitle}·${areaTitle}分区-${orderTitle}`, link: `${areaLink}`, description: `哔哩哔哩直播-${parentTitle}·${areaTitle}分区-${orderTitle}`, - lastBuildDate: new Date().toUTCString(), item: data.map((item) => ({ title: `${item.uname} ${item.title}`, description: `${item.uname} ${item.title}`, diff --git a/lib/routes/bilibili/liveRoom.js b/lib/routes/bilibili/liveRoom.js index 7fc305089..8ab92100e 100644 --- a/lib/routes/bilibili/liveRoom.js +++ b/lib/routes/bilibili/liveRoom.js @@ -35,7 +35,6 @@ module.exports = async (ctx) => { title: `${name} 直播间开播状态`, link: `https://live.bilibili.com/${roomID}`, description: `${name} 直播间开播状态`, - lastBuildDate: new Date().toUTCString(), item: liveItem, allowEmpty: true, }; diff --git a/lib/routes/bilibili/liveSearch.js b/lib/routes/bilibili/liveSearch.js index 3b40901d9..220c109b0 100644 --- a/lib/routes/bilibili/liveSearch.js +++ b/lib/routes/bilibili/liveSearch.js @@ -29,7 +29,6 @@ module.exports = async (ctx) => { title: `哔哩哔哩直播-${key}-${orderTitle}`, link: `https://search.bilibili.com/live?keyword=${urlEncodedKey}&order=${order}&coverType=user_cover&page=1&search_type=live`, description: `哔哩哔哩直播-${key}-${orderTitle}`, - lastBuildDate: new Date().toUTCString(), item: data.map((item) => ({ title: `${item.uname} ${item.title} (${item.cate_name}-${item.live_time})`, description: `${item.uname} ${item.title} (${item.cate_name}-${item.live_time})`, diff --git a/lib/routes/bilibili/page.js b/lib/routes/bilibili/page.js index 7843481f0..a94c194b0 100644 --- a/lib/routes/bilibili/page.js +++ b/lib/routes/bilibili/page.js @@ -24,11 +24,14 @@ module.exports = async (ctx) => { title: `视频 ${name} 的选集列表`, link: link, description: `视频 ${name} 的视频选集列表`, - item: data.map((item) => ({ - title: item.part, - description: `${item.part} - ${name}${!disableEmbed ? `

${utils.iframe(aid, item.page, bvid)}` : ''}`, - pubDate: new Date().toUTCString(), - link: `${link}?p=${item.page}`, - })), + item: data + .sort((a, b) => b.cid - a.cid) + .slice(0, 10) + .map((item) => ({ + title: item.part, + description: `${item.part} - ${name}${!disableEmbed ? `

${utils.iframe(aid, item.page, bvid)}` : ''}`, + pubDate: new Date().toUTCString(), + link: `${link}?p=${item.page}`, + })), }; }; diff --git a/lib/routes/bilibili/vsearch.js b/lib/routes/bilibili/vsearch.js index ca0621fd7..33ff1f185 100644 --- a/lib/routes/bilibili/vsearch.js +++ b/lib/routes/bilibili/vsearch.js @@ -20,7 +20,6 @@ module.exports = async (ctx) => { title: `${kw} - bilibili`, link: `https://search.bilibili.com/all?keyword=${kw_url}&order=${order}`, description: `Result from ${kw} bilibili search, ordered by ${order}.`, - lastBuildDate: new Date().toUTCString(), item: data.map((item) => { const l = item.duration .split(':')