Changes getListFromCommaSeparatedStringList to reduce its responsibility
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good
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.getListFromCommaSeparatedStringList(input, 0) != null) {
|
||||
audioLang = ListUtil.getListFromCommaSeparatedStringList(input, 0);
|
||||
if (input.size() > 0 && ListUtil.getListFromCommaSeparatedString(input.get(0)) != null) {
|
||||
audioLang = ListUtil.getListFromCommaSeparatedString(input.get(0));
|
||||
}
|
||||
if (input.size() > 1 && ListUtil.getListFromCommaSeparatedStringList(input, 1) != null) {
|
||||
subtitleLang = ListUtil.getListFromCommaSeparatedStringList(input, 1);
|
||||
if (input.size() > 1 && ListUtil.getListFromCommaSeparatedString(input.get(1)) != null) {
|
||||
subtitleLang = ListUtil.getListFromCommaSeparatedString(input.get(1));
|
||||
}
|
||||
if (input.size() > 2) {
|
||||
toStereo = Boolean.parseBoolean(input.get(2));
|
||||
|
Reference in New Issue
Block a user