mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-27 13:55:54 +08:00
precheck video dimension
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -247,11 +247,15 @@ TextSpan? richNode(
|
||||
recognizer: NoDeadlineTapGestureRecognizer()
|
||||
..onTap = () async {
|
||||
try {
|
||||
int? cid = await SearchHttp.ab2c(bvid: i.rid);
|
||||
final res = await SearchHttp.ab2cWithDimension(
|
||||
bvid: i.rid,
|
||||
);
|
||||
final cid = res?.cid;
|
||||
if (cid != null) {
|
||||
PageUtils.toVideoPage(
|
||||
bvid: i.rid,
|
||||
cid: cid,
|
||||
dimension: res!.dimension,
|
||||
);
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user