File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/plugins/com.msgbyte.linkmeta/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const specialWebsiteMetaFetchers = [
13
13
match : ( url : string ) => url . startsWith ( 'https://www.bilibili.com/video/BV' ) ,
14
14
overwrite : async ( url : string ) => {
15
15
// from https://github.com/simon300000/bili-api/blob/master/src/api/api.bilibili.com.js
16
- const bvid = _ . last ( url . split ( '?' ) [ 0 ] . split ( '/' ) ) ;
16
+ const bvid = _ . last ( url . split ( '?' ) [ 0 ] . split ( '/' ) . filter ( Boolean ) ) ;
17
17
18
18
const { data } = await got (
19
19
`https://api.bilibili.com/x/web-interface/view?bvid=${ bvid } `
@@ -24,7 +24,7 @@ const specialWebsiteMetaFetchers = [
24
24
if ( aid && bvid && cid ) {
25
25
return {
26
26
videos : [
27
- `https://player.bilibili.com/player.html?aid=${ aid } &bvid=${ bvid } &cid=${ cid } &page=1` ,
27
+ `https://player.bilibili.com/player.html?aid=${ aid } &bvid=${ bvid } &cid=${ cid } &page=1&autoplay=0 ` ,
28
28
] ,
29
29
} ;
30
30
}
You can’t perform that action at this time.
0 commit comments