later view episode

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-07 15:45:33 +08:00
parent bffcfd1f90
commit 930afa4c60
2 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ class RecVideoItemAppModel extends BaseRecVideoItemModel {
RecVideoItemAppModel.fromJson(Map<String, dynamic> json) {
aid = json['player_args']?['aid'] ?? int.tryParse(json['param'] ?? '0');
bvid = json['bvid'] ?? IdUtils.av2bv(id!);
bvid = json['bvid'] ?? IdUtils.av2bv(aid!);
cid = json['player_args']?['cid'];
cover = json['cover'];
stat = RcmdStat.fromJson(json);

View File

@@ -345,6 +345,7 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel> {
}) {
late String title;
String? cover;
String? bvid;
num? duration;
int? pubdate;
int? view;
@@ -360,12 +361,14 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel> {
case ugc.EpisodeItem item:
title = item.title!;
cover = item.arc?.pic;
bvid = item.bvid;
duration = item.arc?.duration;
pubdate = item.arc?.pubdate;
view = item.arc?.stat?.view;
danmaku = item.arc?.stat?.danmaku;
break;
case pgc.EpisodeItem item:
bvid = item.bvid;
if (item.longTitle != null && item.longTitle != "") {
dynamic leading = item.title ?? index + 1;
title =
@@ -424,7 +427,7 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel> {
},
onLongPress: () {
if (cover?.isNotEmpty == true) {
imageSaveDialog(title: title, cover: cover);
imageSaveDialog(title: title, cover: cover, bvid: bvid);
}
},
child: Padding(