opt: view bangumi

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-02 10:10:51 +08:00
parent d30dd96bbd
commit 28c2323ef1
2 changed files with 2 additions and 3 deletions

View File

@@ -44,8 +44,7 @@ class FavVideoCardH extends StatelessWidget {
return;
}
String? epId;
if (videoItem.ogv != null &&
['番剧', '国创', '纪录片'].contains(videoItem.ogv['type_name'])) {
if (videoItem.type == 24) {
videoItem.cid = await SearchHttp.ab2c(bvid: bvid);
dynamic seasonId = videoItem.ogv['season_id'];
epId = videoItem.epId;

View File

@@ -71,7 +71,7 @@ class HistoryItem extends StatelessWidget {
} else {
SmartDialog.showToast('直播未开播');
}
} else if (videoItem.badge == '番剧' ||
} else if (videoItem.history?.business == 'pgc' ||
videoItem.tagName.contains('动画')) {
/// hack
var bvid = videoItem.history.bvid;