mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-16 23:26:14 +08:00
handle music playlist uri
Closes #1130 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -511,6 +511,21 @@ class PiliScheme {
|
||||
case 'login':
|
||||
Get.toNamed('/loginPage');
|
||||
return true;
|
||||
case 'music':
|
||||
if (path.startsWith('/playlist/')) {
|
||||
final mediaId = uriDigitRegExp.firstMatch(path)?.group(1);
|
||||
if (mediaId != null) {
|
||||
Get.toNamed(
|
||||
'/favDetail',
|
||||
parameters: {
|
||||
'mediaId': mediaId,
|
||||
'heroTag': Utils.makeHeroTag(mediaId),
|
||||
},
|
||||
);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
if (!selfHandle) {
|
||||
// if (kDebugMode) debugPrint('$uri');
|
||||
|
||||
Reference in New Issue
Block a user