mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
fix: use correct danmaku XML endpoint (comment.bilibili.com/{cid}.xml)
This commit is contained in:
@@ -174,8 +174,7 @@ export async function pollQRCode(qrcode_key: string): Promise<{ code: number; co
|
||||
|
||||
export async function getDanmaku(cid: number): Promise<DanmakuItem[]> {
|
||||
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',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user