Improves some method names and comments. Refactors parser
Some checks failed
KnarCraft/FFmpegConvert/pipeline/head There was a failure building this commit

This commit is contained in:
2020-05-12 01:05:52 +02:00
parent e1256f61c7
commit f59152a819
13 changed files with 96 additions and 66 deletions

View File

@ -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));