mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 01:26:59 +08:00
later view episode
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user