Add flag for sub

This commit is contained in:
FongMi 2025-04-09 21:26:45 +08:00
parent b61098a606
commit 8d4920159a
1 changed files with 8 additions and 1 deletions

View File

@ -12,6 +12,8 @@ public class Sub {
private String lang; private String lang;
@SerializedName("format") @SerializedName("format")
private String format; private String format;
@SerializedName("flag")
private int flag;
public static Sub create() { public static Sub create() {
return new Sub(); return new Sub();
@ -32,11 +34,16 @@ public class Sub {
return this; return this;
} }
public Sub format(String format) { private Sub format(String format) {
this.format = format; this.format = format;
return this; return this;
} }
public Sub forced() {
this.flag = 2;
return this;
}
public Sub ext(String ext) { public Sub ext(String ext) {
switch (ext) { switch (ext) {
case "vtt": case "vtt":