feat: show video note list

Closes #376

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-04 11:42:41 +08:00
parent c990cf1660
commit 5986add7dd
13 changed files with 363 additions and 16 deletions

View File

@@ -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) {