Files
PiliPlus/lib/models_new/video/video_play_info/subtitle.dart
bggRGjQaUbCoE e1f748d7e4 opt subtitle
Closes #1357

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-09-28 17:39:58 +08:00

21 lines
436 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 {
String? lan;
String? lanDoc;
String? subtitleUrl;
String? subtitleUrlV2;
Subtitle({
this.lan,
this.lanDoc,
this.subtitleUrl,
this.subtitleUrlV2,
});
Subtitle.fromJson(Map<String, dynamic> json) {
lan = json["lan"];
lanDoc = '${json["lan_doc"]}${lan!.startsWith('ai') ? 'AI' : ''}';
subtitleUrl = json["subtitle_url"];
subtitleUrlV2 = json["subtitle_url_v2"];
}
}