mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨feat: bili添加独立播放器
This commit is contained in:
parent
bce87f4d00
commit
517f45bb29
@ -756,7 +756,7 @@ export class tools extends plugin {
|
|||||||
}
|
}
|
||||||
// 直播间分享
|
// 直播间分享
|
||||||
// logger.info(url)
|
// logger.info(url)
|
||||||
if (url.includes("live")) {
|
if (url.includes("live.bilibili.com")) {
|
||||||
// 提取直播间id
|
// 提取直播间id
|
||||||
const idPattern = /\/(\d+)$/;
|
const idPattern = /\/(\d+)$/;
|
||||||
const parsedUrl = new URL(url);
|
const parsedUrl = new URL(url);
|
||||||
@ -783,6 +783,7 @@ export class tools extends plugin {
|
|||||||
`${ tags ? `🔖 标签:${ tags }` : '' }`,
|
`${ tags ? `🔖 标签:${ tags }` : '' }`,
|
||||||
`📍 分区:${ parent_area_name ? `${ parent_area_name }` : '' }${ area_name ? `-${ area_name }` : '' }`,
|
`📍 分区:${ parent_area_name ? `${ parent_area_name }` : '' }${ area_name ? `-${ area_name }` : '' }`,
|
||||||
`${ live_time ? `⏰ 直播时间:${ live_time }` : '' }`,
|
`${ live_time ? `⏰ 直播时间:${ live_time }` : '' }`,
|
||||||
|
`📺 独立播放器: https://www.bilibili.com/blackboard/live/live-activity-player.html?enterTheRoom=0&cid=${ streamId }`
|
||||||
].filter(item => item.trim() !== "").join("\n")
|
].filter(item => item.trim() !== "").join("\n")
|
||||||
]);
|
]);
|
||||||
const streamData = await this.getBiliStream(streamId);
|
const streamData = await this.getBiliStream(streamId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user