fix: B站视频选集列表排序错误 (#6172)
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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})`,
|
||||
|
||||
@@ -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 ? `<br><br>${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 ? `<br><br>${utils.iframe(aid, item.page, bvid)}` : ''}`,
|
||||
pubDate: new Date().toUTCString(),
|
||||
link: `${link}?p=${item.page}`,
|
||||
})),
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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(':')
|
||||
|
||||
Reference in New Issue
Block a user