opt subtitle

Closes #1357

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-28 17:21:53 +08:00
parent 5f8dc76891
commit e1f748d7e4
2 changed files with 24 additions and 13 deletions

View File

@@ -11,10 +11,10 @@ class Subtitle {
this.subtitleUrlV2,
});
factory Subtitle.fromJson(Map<String, dynamic> json) => Subtitle(
lan: json["lan"],
lanDoc: json["lan_doc"],
subtitleUrl: json["subtitle_url"],
subtitleUrlV2: json["subtitle_url_v2"],
);
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"];
}
}