opt: 系统级跳转av、bangumi
This commit is contained in:
@ -167,9 +167,22 @@ class PiliSchame {
|
|||||||
print('bilibili.com host: $host');
|
print('bilibili.com host: $host');
|
||||||
print('bilibili.com path: $path');
|
print('bilibili.com path: $path');
|
||||||
final String lastPathSegment = path!.split('/').last;
|
final String lastPathSegment = path!.split('/').last;
|
||||||
|
if (path.startsWith('/video')) {
|
||||||
if (lastPathSegment.contains('BV')) {
|
if (lastPathSegment.contains('BV')) {
|
||||||
_videoPush(null, lastPathSegment);
|
_videoPush(null, lastPathSegment);
|
||||||
}
|
}
|
||||||
|
if (lastPathSegment.contains('av')) {
|
||||||
|
_videoPush(matchNum(lastPathSegment)[0], null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (path.startsWith('/bangumi')) {
|
||||||
|
if (lastPathSegment.contains('ss')) {
|
||||||
|
_bangumiPush(matchNum(lastPathSegment).first, null);
|
||||||
|
}
|
||||||
|
if (lastPathSegment.contains('ep')) {
|
||||||
|
_bangumiPush(null, matchNum(lastPathSegment).first);
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (host.contains('live')) {
|
} else if (host.contains('live')) {
|
||||||
int roomId = int.parse(path!.split('/').last);
|
int roomId = int.parse(path!.split('/').last);
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
|
|||||||
Reference in New Issue
Block a user