From 865c9f4b835de8e62ec9ea323e0105b228d8c1e5 Mon Sep 17 00:00:00 2001 From: FongMi Date: Fri, 15 Sep 2023 10:48:51 +0800 Subject: [PATCH] Update bili_open.js --- open/bili_open.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/open/bili_open.js b/open/bili_open.js index a2fe526..5f62fd5 100644 --- a/open/bili_open.js +++ b/open/bili_open.js @@ -351,6 +351,7 @@ async function play(flag, id, flags) { const cid = ids[1]; const qualityIds = ids[2].split(':'); const qualityName = ids[3].split(':'); + const dan = 'https://api.bilibili.com/x/v1/dm/list.so?oid=' + cid; if (flag == 'dash' || flag == '相关') { // dash mpd 代理 const js2Base = await js2Proxy(true, siteType, siteKey, 'dash/', {}); @@ -361,6 +362,7 @@ async function play(flag, id, flags) { return JSON.stringify({ parse: 0, url: urls, + danmaku: dan, header: playHeaders, }); } else if (flag == 'mp4') { @@ -378,6 +380,7 @@ async function play(flag, id, flags) { return JSON.stringify({ parse: 0, url: urls, + danmaku: dan, header: playHeaders, }); } else {