Add flag for sub
This commit is contained in:
parent
b61098a606
commit
8d4920159a
|
|
@ -12,6 +12,8 @@ public class Sub {
|
|||
private String lang;
|
||||
@SerializedName("format")
|
||||
private String format;
|
||||
@SerializedName("flag")
|
||||
private int flag;
|
||||
|
||||
public static Sub create() {
|
||||
return new Sub();
|
||||
|
|
@ -32,11 +34,16 @@ public class Sub {
|
|||
return this;
|
||||
}
|
||||
|
||||
public Sub format(String format) {
|
||||
private Sub format(String format) {
|
||||
this.format = format;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sub forced() {
|
||||
this.flag = 2;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sub ext(String ext) {
|
||||
switch (ext) {
|
||||
case "vtt":
|
||||
|
|
|
|||
Loading…
Reference in New Issue