mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-09 19:47:57 +08:00
opt subtitle
Closes #1357 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user