mod: handle medialist url

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-29 14:13:36 +08:00
parent 1cbeacbd0f
commit 101e49fe74
2 changed files with 20 additions and 8 deletions

View File

@@ -665,6 +665,21 @@ class PiliScheme {
}
launchURL();
return false;
case 'medialist':
String? mediaId = RegExp(r'/ml(\d+)').firstMatch(path)?.group(1);
if (mediaId != null) {
PageUtils.toDupNamed(
'/favDetail',
parameters: {
'mediaId': mediaId,
'heroTag': Utils.makeHeroTag(mediaId),
},
off: off,
);
return true;
}
launchURL();
return false;
default:
Map map = IdUtils.matchAvorBv(input: area?.split('?').first);
if (map.isNotEmpty) {