Add flag for sub
This commit is contained in:
parent
b61098a606
commit
8d4920159a
|
|
@ -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":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue