Files
PiliPlus/lib/models_new/video/video_play_info/subtitle.dart
My-Responsitories 89e6d5c160 tweaks (#1381)
* opt: boundary

* opt: subtitle

* tweaks
2025-09-29 14:13:02 +00:00

16 lines
377 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.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"];
}
}