mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: view bangumi from history
This commit is contained in:
@@ -168,8 +168,10 @@ class SearchHttp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<Map<String, dynamic>> bangumiInfo(
|
static Future<Map<String, dynamic>> bangumiInfo({
|
||||||
{int? seasonId, int? epId}) async {
|
dynamic seasonId,
|
||||||
|
dynamic epId,
|
||||||
|
}) async {
|
||||||
final Map<String, dynamic> data = {};
|
final Map<String, dynamic> data = {};
|
||||||
if (seasonId != null) {
|
if (seasonId != null) {
|
||||||
data['season_id'] = seasonId;
|
data['season_id'] = seasonId;
|
||||||
|
|||||||
@@ -86,14 +86,15 @@ class HistoryItem extends StatelessWidget {
|
|||||||
String heroTag = Utils.makeHeroTag(cid);
|
String heroTag = Utils.makeHeroTag(cid);
|
||||||
var epid = result['data'].epId;
|
var epid = result['data'].epId;
|
||||||
if (epid != null) {
|
if (epid != null) {
|
||||||
Get.toNamed(
|
Utils.viewBangumi(epId: epid);
|
||||||
'/video?bvid=$bvid&cid=$cid&seasonId=${result['data'].seasonId}&epId=${result['data'].epId}',
|
// Get.toNamed(
|
||||||
arguments: {
|
// '/video?bvid=$bvid&cid=$cid&seasonId=${result['data'].seasonId}&epId=${result['data'].epId}',
|
||||||
'pic': pic,
|
// arguments: {
|
||||||
'heroTag': heroTag,
|
// 'pic': pic,
|
||||||
'videoType': SearchType.media_bangumi,
|
// 'heroTag': heroTag,
|
||||||
},
|
// 'videoType': SearchType.media_bangumi,
|
||||||
);
|
// },
|
||||||
|
// );
|
||||||
} else {
|
} else {
|
||||||
int cid = videoItem.history.cid ??
|
int cid = videoItem.history.cid ??
|
||||||
// videoItem.history.oid ??
|
// videoItem.history.oid ??
|
||||||
|
|||||||
Reference in New Issue
Block a user