Improves some method names and comments. Refactors parser
Some checks failed
KnarCraft/FFmpegConvert/pipeline/head There was a failure building this commit
Some checks failed
KnarCraft/FFmpegConvert/pipeline/head There was a failure building this commit
This commit is contained in:
@ -111,11 +111,11 @@ class Main {
|
||||
String[] subtitleLang = new String[]{"eng", "*"};
|
||||
boolean toStereo = true;
|
||||
boolean preventSigns = true;
|
||||
if (input.size() > 0 && ListUtil.getList(input, 0) != null) {
|
||||
audioLang = ListUtil.getList(input, 0);
|
||||
if (input.size() > 0 && ListUtil.getListFromCommaSeparatedStringList(input, 0) != null) {
|
||||
audioLang = ListUtil.getListFromCommaSeparatedStringList(input, 0);
|
||||
}
|
||||
if (input.size() > 1 && ListUtil.getList(input, 1) != null) {
|
||||
subtitleLang = ListUtil.getList(input, 1);
|
||||
if (input.size() > 1 && ListUtil.getListFromCommaSeparatedStringList(input, 1) != null) {
|
||||
subtitleLang = ListUtil.getListFromCommaSeparatedStringList(input, 1);
|
||||
}
|
||||
if (input.size() > 2) {
|
||||
toStereo = Boolean.parseBoolean(input.get(2));
|
||||
|
Reference in New Issue
Block a user