Made the transcoder run as a periodic task, with the interval defined in the config TOML file
This commit is contained in:
@ -4,6 +4,8 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Objects;
|
||||
|
||||
import org.tomlj.Toml;
|
||||
import org.tomlj.TomlParseResult;
|
||||
import tech.bitgoblin.io.IOUtils;
|
||||
@ -28,6 +30,10 @@ public class Config {
|
||||
return this.result.getString(key);
|
||||
}
|
||||
|
||||
public int getInt(String key) {
|
||||
return Objects.requireNonNull(this.result.getDouble(key)).intValue();
|
||||
}
|
||||
|
||||
public boolean contains(String key) {
|
||||
return this.result.contains(key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user