mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
opt: view bangumi from fav
This commit is contained in:
@@ -32,13 +32,13 @@ class FavVideoCardH extends StatelessWidget {
|
|||||||
String heroTag = Utils.makeHeroTag(id);
|
String heroTag = Utils.makeHeroTag(id);
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
// int? seasonId;
|
int? seasonId;
|
||||||
String? epId;
|
String? epId;
|
||||||
if (videoItem.ogv != null &&
|
if (videoItem.ogv != null &&
|
||||||
(videoItem.ogv['type_name'] == '番剧' ||
|
(videoItem.ogv['type_name'] == '番剧' ||
|
||||||
videoItem.ogv['type_name'] == '国创')) {
|
videoItem.ogv['type_name'] == '国创')) {
|
||||||
videoItem.cid = await SearchHttp.ab2c(bvid: bvid);
|
videoItem.cid = await SearchHttp.ab2c(bvid: bvid);
|
||||||
// seasonId = videoItem.ogv['season_id'];
|
seasonId = videoItem.ogv['season_id'];
|
||||||
epId = videoItem.epId;
|
epId = videoItem.epId;
|
||||||
} else if (videoItem.page == 0 || videoItem.page > 1) {
|
} else if (videoItem.page == 0 || videoItem.page > 1) {
|
||||||
var result = await VideoHttp.videoIntro(bvid: bvid);
|
var result = await VideoHttp.videoIntro(bvid: bvid);
|
||||||
@@ -53,6 +53,7 @@ class FavVideoCardH extends StatelessWidget {
|
|||||||
'bvid': bvid,
|
'bvid': bvid,
|
||||||
'cid': videoItem.cid.toString(),
|
'cid': videoItem.cid.toString(),
|
||||||
'epId': epId ?? '',
|
'epId': epId ?? '',
|
||||||
|
if (seasonId != null) 'seasonId': seasonId.toString(),
|
||||||
};
|
};
|
||||||
// if (seasonId != null) {
|
// if (seasonId != null) {
|
||||||
// parameters['seasonId'] = seasonId.toString();
|
// parameters['seasonId'] = seasonId.toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user