Skip to content

Commit

Permalink
Update bilibili.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LumosLovegood committed Dec 5, 2022
1 parent 9700711 commit cf8738e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BilibiliVideo/bilibili.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function getBiliInfo(url){
let doc = p.parseFromString(res, "text/html");
let $ = s => doc.querySelector(s);

let mainUrl = url.match(/^.+[\?$]/g)
let mainUrl = url.match(/^.+[\?$]/g)[0]
let parts = "";;
if($('h3')) {
let partList = doc.querySelectorAll("script")[3].textContent.match(/(?<=part\":\").+?(?=\")/g);
Expand Down

0 comments on commit cf8738e

Please sign in to comment.