opt set dm/sub settings

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-13 19:11:46 +08:00
parent 685852c0a4
commit 65746ae2bd
2 changed files with 202 additions and 164 deletions

View File

@@ -9,7 +9,6 @@ import 'package:PiliPlus/models_new/video/video_detail/stat.dart';
import 'package:PiliPlus/models_new/video/video_detail/subtitle.dart';
import 'package:PiliPlus/models_new/video/video_detail/ugc_season.dart';
import 'package:PiliPlus/models_new/video/video_detail/user_garb.dart';
import 'package:PiliPlus/utils/app_scheme.dart';
class VideoDetailData {
String? bvid;
@@ -56,8 +55,8 @@ class VideoDetailData {
bool? disableShowUpInfo;
int? isStoryPlay;
bool? isViewSelf;
String? epId;
List<Staff>? staff;
String? redirectUrl;
bool isPageReversed = false;
VideoDetailData({
@@ -105,8 +104,8 @@ class VideoDetailData {
this.disableShowUpInfo,
this.isStoryPlay,
this.isViewSelf,
this.epId,
this.staff,
this.redirectUrl,
});
factory VideoDetailData.fromJson(Map<String, dynamic> json) =>
@@ -178,10 +177,6 @@ class VideoDetailData {
staff: (json["staff"] as List?)
?.map((item) => Staff.fromJson(item))
.toList(),
epId: json['redirect_url'] == null
? null
: PiliScheme.uriDigitRegExp
.firstMatch(json['redirect_url'])
?.group(1),
redirectUrl: json['redirect_url'],
);
}