Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-04 11:13:50 +08:00
parent 2e614fa03c
commit 3208661a52
8 changed files with 120 additions and 70 deletions

View File

@@ -312,8 +312,8 @@ class PgcIntroController extends CommonIntroController {
hasLater.value = false;
this.cid.value = cid;
queryVideoIntro();
queryOnlineTotal();
queryVideoIntro(episode as EpisodeItem);
} catch (e) {
debugPrint('pgc onChangeEpisode: $e');
}
@@ -467,8 +467,8 @@ class PgcIntroController extends CommonIntroController {
}
@override
Future<void> queryVideoIntro() async {
final episode = pgcItem.episodes!.firstWhere((e) => e.cid == cid.value);
void queryVideoIntro([EpisodeItem? episode]) {
episode ??= pgcItem.episodes!.firstWhere((e) => e.cid == cid.value);
videoPlayerServiceHandler.onVideoDetailChange(
episode,
cid.value,