Skip to content

Commit

Permalink
fix(route): slice base64 string
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Nov 24, 2023
1 parent bb58904 commit dcb4aad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/v2/bilibili/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ module.exports = async (ctx) => {
// },
// });
const params = utils.addVerifyInfo(
`mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true&dm_img_list=[]&dm_img_str=${Buffer.from('no webgl').toString('base64')}&dm_cover_img_str=${Buffer.from(
`mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true&dm_img_list=[]&dm_img_str=${Buffer.from('no webgl').toString('base64').slice(0, -2)}&dm_cover_img_str=${Buffer.from(
'no webgl'
).toString('base64')}`,
)
.toString('base64')
.slice(0, -2)}`,
verifyString
);
const response = await got(`https://api.bilibili.com/x/space/wbi/arc/search?${params}`, {
Expand Down

0 comments on commit dcb4aad

Please sign in to comment.