mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: show video note list
Closes #376 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -430,7 +430,29 @@ class PiliScheme {
|
||||
final String? area = pathSegments.first == 'mobile'
|
||||
? pathSegments.getOrNull(1)
|
||||
: pathSegments.first;
|
||||
debugPrint('area: $area');
|
||||
switch (area) {
|
||||
case 'h5':
|
||||
if (path.startsWith('/h5/note')) {
|
||||
String? id = RegExp(r'cvid=(\d+)', caseSensitive: false)
|
||||
.firstMatch(uri.query)
|
||||
?.group(1);
|
||||
if (id != null) {
|
||||
Utils.toDupNamed(
|
||||
'/htmlRender',
|
||||
parameters: {
|
||||
'url': 'https://www.bilibili.com/read/cv$id',
|
||||
'title': '',
|
||||
'id': 'cv$id',
|
||||
'dynamicType': 'read'
|
||||
},
|
||||
off: off,
|
||||
);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
launchURL();
|
||||
return false;
|
||||
case 'opus' || 'dynamic':
|
||||
bool hasMatch = await _onPushDynDetail(path, off);
|
||||
if (hasMatch.not) {
|
||||
|
||||
Reference in New Issue
Block a user