From e94f0081683344d0b22e8636e8adde141f400086 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Mon, 7 Oct 2024 21:46:00 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20appScheme=20=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/app_scheme.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils/app_scheme.dart b/lib/utils/app_scheme.dart index 22184139..f26eff77 100644 --- a/lib/utils/app_scheme.dart +++ b/lib/utils/app_scheme.dart @@ -175,6 +175,11 @@ class PiliSchame { if (lastPathSegment.contains('ep')) { RoutePush.bangumiPush(null, Utils.matchNum(lastPathSegment).first); } + } else if (path.startsWith('/BV')) { + final String bvid = path.split('?').first.split('/').last; + _videoPush(null, bvid); + } else if (path.startsWith('/av')) { + _videoPush(Utils.matchNum(path.split('?').first).first, null); } } else if (host.contains('live')) { int roomId = int.parse(path!.split('/').last);