mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt set dm/sub settings
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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'],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user