This repository was archived by the owner on Jul 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Api {
2424
2525 // 字幕
2626 // aid, cid
27- static const String subtitleUrl = '/x/player/wbi/v2' ;
27+ static const String videoMetaInfo = '/x/player/wbi/v2' ;
2828
2929 // 视频详情
3030 // 竖屏 https://api.bilibili.com/x/web-interface/view?aid=527403921
Original file line number Diff line number Diff line change @@ -668,10 +668,10 @@ class VideoHttp {
668668 }
669669 }
670670
671- static Future subtitlesJson (
671+ static Future videoMetaInfo (
672672 {String ? aid, String ? bvid, required int cid}) async {
673673 assert (aid != null || bvid != null );
674- var res = await Request ().get (Api .subtitleUrl , data: {
674+ var res = await Request ().get (Api .videoMetaInfo , data: {
675675 if (aid != null ) 'aid' : aid,
676676 if (bvid != null ) 'bvid' : bvid,
677677 'cid' : cid,
Original file line number Diff line number Diff line change @@ -565,7 +565,7 @@ class PlPlayerController {
565565 }
566566 await _initializePlayer (seekTo: seekTo);
567567 if (videoType.value != 'live' && _cid != 0 ) {
568- refreshSubtitles ().then ((_) {
568+ refreshVideoMetaInfo ().then ((_) {
569569 chooseSubtitle ();
570570 });
571571 }
@@ -1633,11 +1633,11 @@ class PlPlayerController {
16331633 }
16341634 }
16351635
1636- Future refreshSubtitles () async {
1636+ Future refreshVideoMetaInfo () async {
16371637 _vttSubtitles.clear ();
1638- Map res = await VideoHttp .subtitlesJson (bvid: _bvid, cid: _cid);
1638+ Map res = await VideoHttp .videoMetaInfo (bvid: _bvid, cid: _cid);
16391639 if (! res["status" ]) {
1640- SmartDialog .showToast ('查询字幕错误 ,${res ["msg" ]}' );
1640+ SmartDialog .showToast ('查询视频元信息(字幕、防挡、章节等)错误 ,${res ["msg" ]}' );
16411641 }
16421642 if (res["data" ].length == 0 ) {
16431643 return ;
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ dependency_overrides:
177177# ref: main
178178 fading_edge_scrollview : ^4.1.1
179179 rxdart : ^0.28.0
180- screen_brightness : ^ 2.0.1
180+ screen_brightness : 2.0.1
181181# media_kit:
182182# git:
183183# url: https://github.com/media-kit/media-kit.git
You can’t perform that action at this time.
0 commit comments