mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 特定视频链接解析
This commit is contained in:
@@ -268,15 +268,22 @@ class PiliSchame {
|
|||||||
Get.toNamed('/member?mid=$area', arguments: {'face': ''});
|
Get.toNamed('/member?mid=$area', arguments: {'face': ''});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
SmartDialog.showToast('未知路径或匹配错误:${value.dataString},先采用浏览器打开');
|
var res = IdUtils.matchAvorBv(input: area.split('?').first);
|
||||||
Get.toNamed(
|
if (res.containsKey('AV')) {
|
||||||
'/webview',
|
_videoPush(res['AV']! as int, null);
|
||||||
parameters: {
|
} else if (res.containsKey('BV')) {
|
||||||
'url': value.dataString ?? "",
|
_videoPush(null, res['BV'] as String);
|
||||||
'type': 'url',
|
} else {
|
||||||
'pageTitle': ''
|
SmartDialog.showToast('未知路径或匹配错误:${value.dataString},先采用浏览器打开');
|
||||||
},
|
Get.toNamed(
|
||||||
);
|
'/webview',
|
||||||
|
parameters: {
|
||||||
|
'url': value.dataString ?? "",
|
||||||
|
'type': 'url',
|
||||||
|
'pageTitle': ''
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user