If no config exists, one will be auto generated from the default

This commit is contained in:
Isaac Grynsztein
2020-03-24 20:59:58 -04:00
parent d4664bad45
commit 0d756c4c97
2 changed files with 62 additions and 1 deletions

View File

@@ -79,6 +79,9 @@ var validDownloadingAgents = [
let writeConfigMode = process.env.write_ytdl_config;
var config = null;
// checks if config exists, if not, a config is auto generated
config_api.configExistsCheck();
if (writeConfigMode) {
setAndLoadConfig();
} else {