Merge branch 'fix'

This commit is contained in:
guozhigq
2024-11-06 23:46:40 +08:00
5 changed files with 23 additions and 25 deletions

View File

@ -495,7 +495,7 @@ class Api {
static const activateBuvidApi = '/x/internal/gaia-gateway/ExClimbWuzhi';
/// 获取字幕配置
static const getSubtitleConfig = '/x/player/v2';
static const getSubtitleConfig = '/x/player/wbi/v2';
/// 我的订阅
static const userSubFolder = '/x/v3/fav/folder/collected/list';

View File

@ -509,10 +509,11 @@ class VideoHttp {
}
}
static Future getSubtitle({int? cid, String? bvid}) async {
static Future getSubtitle({int? cid, String? bvid, String? aid}) async {
var res = await Request().get(Api.getSubtitleConfig, data: {
'cid': cid,
'bvid': bvid,
if (bvid != null) 'bvid': bvid,
if (aid != null) 'aid': aid,
});
try {
if (res.data['code'] == 0) {