Skip to content

Commit

Permalink
fix(bilibili): fix -352 error by adding dm info (#16628)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO authored Sep 4, 2024
1 parent 5911176 commit 2f3cff8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/routes/bilibili/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,8 @@ async function handler(ctx) {

const cookie = await cacheIn.getCookie();

const response = await got({
method: 'get',
url: `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space`,
searchParams: {
host_mid: uid,
platform: 'web',
features: 'itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote',
},
const params = utils.addDmVerifyInfo(`host_mid=${uid}&platform=web&features=itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote`, utils.getDmImgList());
const response = await got(`https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space?${params}`, {
headers: {
Referer: `https://space.bilibili.com/${uid}/`,
Cookie: cookie,
Expand Down

0 comments on commit 2f3cff8

Please sign in to comment.