mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 17:46:24 +08:00
update part media item
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user