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, bvid: bvid,
epid: epId, epid: epId,
seasonId: seasonId, seasonId: seasonId,
forcePgcApi: Get.arguments['pgcApi'] ?? false,
); );
if (result['status']) { if (result['status']) {
data = result['data']; data = result['data'];

View File

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