From 4d7f943618999e1fac1532c18bef573138d4e89b Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 11 Mar 2026 10:23:47 +0800 Subject: [PATCH] fix: use correct danmaku XML endpoint (comment.bilibili.com/{cid}.xml) --- services/bilibili.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/bilibili.ts b/services/bilibili.ts index 578c934..5ede8a0 100644 --- a/services/bilibili.ts +++ b/services/bilibili.ts @@ -174,8 +174,7 @@ export async function pollQRCode(qrcode_key: string): Promise<{ code: number; co export async function getDanmaku(cid: number): Promise { try { - const res = await axios.get(`${COMMENT_BASE}/x/v1/dm/list.so`, { - params: { oid: cid }, + const res = await axios.get(`${COMMENT_BASE}/${cid}.xml`, { headers: isWeb ? {} : { Referer: 'https://www.bilibili.com', 'User-Agent': UA }, responseType: 'text', });