opt: view pgc section

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-12 16:14:59 +08:00
parent 09753b6bbd
commit 695a89b91a
2 changed files with 3 additions and 1 deletions

View File

@@ -1053,6 +1053,7 @@ class VideoDetailController extends GetxController
bvid: bvid,
epid: epId,
seasonId: seasonId,
forcePgcApi: Get.arguments['pgcApi'] ?? false,
);
if (result['status']) {
data = result['data'];

View File

@@ -757,8 +757,9 @@ class Utils {
if (item.epId.toString() == epId.toString()) {
// view as normal video
Utils.toDupNamed(
'/video?bvid=${item.bvid}&cid=${item.cid}',
'/video?bvid=${item.bvid}&cid=${item.cid}&seasonId=${data.seasonId}&epId=${item.epId}',
arguments: {
'pgcApi': true,
'pic': item.cover,
'heroTag': Utils.makeHeroTag(item.cid),
'videoType': SearchType.video,