mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 09:37:02 +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) {
|
RecVideoItemAppModel.fromJson(Map<String, dynamic> json) {
|
||||||
aid = json['player_args']?['aid'] ?? int.tryParse(json['param'] ?? '0');
|
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'];
|
cid = json['player_args']?['cid'];
|
||||||
cover = json['cover'];
|
cover = json['cover'];
|
||||||
stat = RcmdStat.fromJson(json);
|
stat = RcmdStat.fromJson(json);
|
||||||
|
|||||||
@@ -345,6 +345,7 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel> {
|
|||||||
}) {
|
}) {
|
||||||
late String title;
|
late String title;
|
||||||
String? cover;
|
String? cover;
|
||||||
|
String? bvid;
|
||||||
num? duration;
|
num? duration;
|
||||||
int? pubdate;
|
int? pubdate;
|
||||||
int? view;
|
int? view;
|
||||||
@@ -360,12 +361,14 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel> {
|
|||||||
case ugc.EpisodeItem item:
|
case ugc.EpisodeItem item:
|
||||||
title = item.title!;
|
title = item.title!;
|
||||||
cover = item.arc?.pic;
|
cover = item.arc?.pic;
|
||||||
|
bvid = item.bvid;
|
||||||
duration = item.arc?.duration;
|
duration = item.arc?.duration;
|
||||||
pubdate = item.arc?.pubdate;
|
pubdate = item.arc?.pubdate;
|
||||||
view = item.arc?.stat?.view;
|
view = item.arc?.stat?.view;
|
||||||
danmaku = item.arc?.stat?.danmaku;
|
danmaku = item.arc?.stat?.danmaku;
|
||||||
break;
|
break;
|
||||||
case pgc.EpisodeItem item:
|
case pgc.EpisodeItem item:
|
||||||
|
bvid = item.bvid;
|
||||||
if (item.longTitle != null && item.longTitle != "") {
|
if (item.longTitle != null && item.longTitle != "") {
|
||||||
dynamic leading = item.title ?? index + 1;
|
dynamic leading = item.title ?? index + 1;
|
||||||
title =
|
title =
|
||||||
@@ -424,7 +427,7 @@ class _EpisodePanelState extends CommonSlidePageState<EpisodePanel> {
|
|||||||
},
|
},
|
||||||
onLongPress: () {
|
onLongPress: () {
|
||||||
if (cover?.isNotEmpty == true) {
|
if (cover?.isNotEmpty == true) {
|
||||||
imageSaveDialog(title: title, cover: cover);
|
imageSaveDialog(title: title, cover: cover, bvid: bvid);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|||||||
Reference in New Issue
Block a user