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 = [
1313 match : ( url : string ) => url . startsWith ( 'https://www.bilibili.com/video/BV' ) ,
1414 overwrite : async ( url : string ) => {
1515 // 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 ) ) ;
1717
1818 const { data } = await got (
1919 `https://api.bilibili.com/x/web-interface/view?bvid=${ bvid } `
@@ -24,7 +24,7 @@ const specialWebsiteMetaFetchers = [
2424 if ( aid && bvid && cid ) {
2525 return {
2626 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 ` ,
2828 ] ,
2929 } ;
3030 }
You can’t perform that action at this time.
0 commit comments