fix: reverse play

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-31 17:02:12 +08:00
parent 273e5649c3
commit df41729d74
12 changed files with 142 additions and 125 deletions

View File

@@ -69,6 +69,8 @@ class VideoDetailData {
bool? needJumpBv;
String? epId;
List<Staff>? staff;
late bool isPageReversed;
late bool isSeasonReversed;
VideoDetailData({
this.bvid,
@@ -107,6 +109,8 @@ class VideoDetailData {
this.needJumpBv,
this.epId,
this.staff,
this.isPageReversed = false,
this.isSeasonReversed = false,
});
VideoDetailData.fromJson(Map<String, dynamic> json) {
@@ -163,6 +167,8 @@ class VideoDetailData {
if (json['redirect_url'] != null) {
epId = resolveEpId(json['redirect_url']);
}
isPageReversed = false;
isSeasonReversed = false;
}
String resolveEpId(url) {