Automatically fixes jap misspelling for Japanese streams
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2024-06-10 14:36:19 +02:00
parent 32be7d0aec
commit 5238697c70
2 changed files with 4 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class DownScaleConverter extends AbstractConverter {
}
modules.add(new ScaleModule(this.newWidth, this.newHeight));
modules.add(new SetQualityModule(20, "slower"));
modules.add(new SetQualityModule(20, "slow"));
modules.add(new SetOutputFileModule(outFile));
modules.add(new HardwareDecodeModule());
new ModuleExecutor(command, modules).execute();

View File

@ -102,6 +102,9 @@ public abstract class AbstractStream implements StreamObject {
(title.toLowerCase().matches(".*english.*") && languageString.equalsIgnoreCase("jpn"))) {
return "eng";
}
if (languageString.equalsIgnoreCase("jap")) {
return "jpn";
}
return languageString;
}