mod: live room

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-11 11:44:58 +08:00
parent 26b437f5df
commit 32d2ec8ca0
12 changed files with 38 additions and 77 deletions

View File

@@ -86,8 +86,7 @@ class PiliScheme {
}
} else if (host == 'live') {
final String roomId = path.split('/').last;
Utils.toDupNamed('/liveRoom?roomid=$roomId',
arguments: <String, String?>{'liveItem': null, 'heroTag': roomId});
Utils.toDupNamed('/liveRoom?roomid=$roomId');
} else if (host == 'bangumi') {
if (path.startsWith('/season')) {
final String seasonId = path.split('/').last;
@@ -307,10 +306,7 @@ class PiliScheme {
debugPrint('bilibili.com');
} else if (host.contains('live')) {
int roomId = int.parse(path.split('/').last);
Utils.toDupNamed(
'/liveRoom?roomid=$roomId',
arguments: {'liveItem': null, 'heroTag': roomId.toString()},
);
Utils.toDupNamed('/liveRoom?roomid=$roomId');
return;
} else if (host.contains('space')) {
var mid = path.split('/').last;