mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: view pgc
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -79,16 +79,17 @@ class VideoCardH extends StatelessWidget {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (videoItem is HotVideoItemModel &&
|
if (videoItem is HotVideoItemModel &&
|
||||||
videoItem.pgcLabel?.isNotEmpty == true &&
|
// videoItem.pgcLabel?.isNotEmpty == true &&
|
||||||
videoItem.redirectUrl?.isNotEmpty == true) {
|
videoItem.redirectUrl?.isNotEmpty == true) {
|
||||||
String? id = RegExp(r'(ep|ss)\d+')
|
String? id = RegExp(r'(ep|ss)\d+')
|
||||||
.firstMatch(videoItem.redirectUrl)
|
.firstMatch(videoItem.redirectUrl)
|
||||||
?.group(0);
|
?.group(0);
|
||||||
if (id != null) {
|
if (id != null) {
|
||||||
|
bool isSeason = id.startsWith('ss');
|
||||||
|
id = id.substring(2);
|
||||||
Utils.viewBangumi(
|
Utils.viewBangumi(
|
||||||
seasonId:
|
seasonId: isSeason ? id : null,
|
||||||
id.startsWith('ss') ? id.replaceFirst('ss', '') : null,
|
epId: isSeason ? null : id,
|
||||||
epId: id.startsWith('ep') ? id.replaceFirst('ep', '') : null,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user