Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -78,7 +78,9 @@ class _CdnSelectDialogState extends State<CdnSelectDialog> {
_cdnSpeedTest = Pref.cdnSpeedTest;
if (_cdnSpeedTest) {
_cdnResList = List.generate(
CDNService.values.length, (_) => ValueNotifier<String?>(null));
CDNService.values.length,
(_) => ValueNotifier<String?>(null),
);
_cancelToken = CancelToken();
_startSpeedTest();
}
@@ -97,8 +99,10 @@ class _CdnSelectDialogState extends State<CdnSelectDialog> {
}
Future<VideoItem> _getSampleUrl() async {
final result =
await VideoHttp.videoUrl(cid: 196018899, bvid: 'BV1fK4y1t7hj');
final result = await VideoHttp.videoUrl(
cid: 196018899,
bvid: 'BV1fK4y1t7hj',
);
if (!result['status']) throw Exception('无法获取视频流');
return result['data'].dash.video.first;
}