mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
fix: episode cid
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user