update part media item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-06 20:10:19 +08:00
parent 05119edacb
commit eb9f3cd21c
3 changed files with 23 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
var res = await VideoHttp.videoIntro(bvid: bvid);
if (res.isSuccess) {
VideoDetailData data = res.data;
videoPlayerServiceHandler.onVideoDetailChange(data, data.cid!, heroTag);
videoPlayerServiceHandler.onVideoDetailChange(data, cid.value, heroTag);
if (videoDetail.value.ugcSeason?.id == data.ugcSeason?.id) {
// keep reversed season
data.ugcSeason = videoDetail.value.ugcSeason;
@@ -517,6 +517,17 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
hasLater.value = videoDetailCtr.sourceType == SourceType.watchLater;
this.bvid = bvid;
queryVideoIntro();
} else {
if (episode is Part) {
final videoDetail = this.videoDetail.value;
videoPlayerServiceHandler.onVideoDetailChange(
episode,
cid,
heroTag,
artist: videoDetail.owner?.name,
cover: videoDetail.pic,
);
}
}
this.cid.value = cid;