redirect ugc to pgc

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-08 11:25:20 +08:00
parent a1f15b5da5
commit 01a74e191a
6 changed files with 34 additions and 12 deletions

View File

@@ -90,6 +90,14 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
queryVideoTags();
final res = await VideoHttp.videoIntro(bvid: bvid);
if (res case Success(:final response)) {
if (response.redirectUrl != null &&
videoDetailCtr.epId == null &&
videoDetailCtr.seasonId == null) {
if (!isClosed) {
PageUtils.viewPgcFromUri(response.redirectUrl!, off: true);
}
return;
}
videoPlayerServiceHandler?.onVideoDetailChange(
response,
cid.value,