Files
PiliPlus/lib/models_new/video/video_play_info/subtitle.dart
bggRGjQaUbCoE 963181fef2 feat: load file sub
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-11-10 11:31:43 +08:00

21 lines
437 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
class Subtitle {
late String lan;
String? lanDoc;
String? subtitleUrl;
String? subtitleUrlV2;
bool isAi = false;
Subtitle({
required this.lan,
this.lanDoc,
});
Subtitle.fromJson(Map<String, dynamic> json) {
lan = json["lan"];
isAi = json["type"] == 1;
lanDoc = '${json["lan_doc"]}${isAi ? 'AI' : ''}';
subtitleUrl = json["subtitle_url"];
subtitleUrlV2 = json["subtitle_url_v2"];
}
}