fix: episode cid

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-02 12:15:25 +08:00
parent f99740ef2d
commit fc55bf33d0
2 changed files with 24 additions and 21 deletions

View File

@@ -206,7 +206,8 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel>
child: Column( child: Column(
children: [ children: [
_buildToolbar, _buildToolbar,
if (widget.type == EpisodeType.season && widget.list.length > 1) if (widget.type == EpisodeType.season &&
widget.list.length > 1) ...[
TabBar( TabBar(
controller: _tabController, controller: _tabController,
padding: const EdgeInsets.only(right: 60), padding: const EdgeInsets.only(right: 60),
@@ -216,8 +217,7 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel>
dividerColor: Theme.of(context).dividerColor.withOpacity(0.1), dividerColor: Theme.of(context).dividerColor.withOpacity(0.1),
), ),
Expanded( Expanded(
child: widget.type == EpisodeType.season child: Material(
? Material(
color: Colors.transparent, color: Colors.transparent,
child: tabBarView( child: tabBarView(
controller: _tabController, controller: _tabController,
@@ -229,10 +229,11 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel>
), ),
), ),
), ),
) ),
: enableSlide ),
? slideList() ] else
: buildList, Expanded(
child: enableSlide ? slideList() : buildList,
), ),
], ],
), ),
@@ -241,7 +242,7 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel>
@override @override
Widget get buildList => Material( Widget get buildList => Material(
color: Colors.transparent, color: Colors.transparent,
child: _buildBody(0, widget.list[0]), child: _buildBody(0, _getCurrEpisodes),
); );
Widget _buildBody(int index, episodes) { Widget _buildBody(int index, episodes) {

View File

@@ -512,7 +512,9 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
isSeason ? null : episodes, isSeason ? null : episodes,
bvid, bvid,
IdUtils.bv2av(bvid), IdUtils.bv2av(bvid),
currentCid, isSeason && isPage
? widget.videoDetailController?.seasonCid ?? currentCid
: currentCid,
); );
}, },
), ),