From 517f45bb29351bfa2c90c892cc98e29f024bf768 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Tue, 26 Nov 2024 19:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feat:=20bili=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E6=92=AD=E6=94=BE=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/tools.js b/apps/tools.js index 2b1a209..a7d2eca 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -756,7 +756,7 @@ export class tools extends plugin { } // 直播间分享 // logger.info(url) - if (url.includes("live")) { + if (url.includes("live.bilibili.com")) { // 提取直播间id const idPattern = /\/(\d+)$/; const parsedUrl = new URL(url); @@ -783,6 +783,7 @@ export class tools extends plugin { `${ tags ? `🔖 标签:${ tags }` : '' }`, `📍 分区:${ parent_area_name ? `${ parent_area_name }` : '' }${ area_name ? `-${ area_name }` : '' }`, `${ live_time ? `⏰ 直播时间:${ live_time }` : '' }`, + `📺 独立播放器: https://www.bilibili.com/blackboard/live/live-activity-player.html?enterTheRoom=0&cid=${ streamId }` ].filter(item => item.trim() !== "").join("\n") ]); const streamData = await this.getBiliStream(streamId);