mod: getSubtitle api

This commit is contained in:
guozhigq
2024-11-05 23:36:31 +08:00
parent d60bbec827
commit 3a68581ae5
2 changed files with 4 additions and 3 deletions

View File

@ -507,10 +507,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) {