mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-19 07:34:04 +08:00
precheck video dimension
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -36,13 +36,15 @@ class SubVideoCardH extends StatelessWidget {
|
||||
type: MaterialType.transparency,
|
||||
child: InkWell(
|
||||
onTap: () async {
|
||||
int? cid = await SearchHttp.ab2c(bvid: videoItem.bvid);
|
||||
final res = await SearchHttp.ab2cWithDimension(bvid: videoItem.bvid);
|
||||
final cid = res?.cid;
|
||||
if (cid != null) {
|
||||
PageUtils.toVideoPage(
|
||||
bvid: videoItem.bvid,
|
||||
cid: cid,
|
||||
cover: videoItem.cover,
|
||||
title: videoItem.title,
|
||||
dimension: res!.dimension,
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user