mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-11 12:01:28 +03:00
fix: remove env variable check
This commit is contained in:
@@ -147,16 +147,11 @@ if (fs.existsSync('version.json')) {
|
|||||||
|
|
||||||
// don't overwrite config if it already happened.. NOT
|
// don't overwrite config if it already happened.. NOT
|
||||||
// let alreadyWritten = db.get('configWriteFlag').value();
|
// let alreadyWritten = db.get('configWriteFlag').value();
|
||||||
let writeConfigMode = process.env.write_ytdl_config;
|
|
||||||
|
|
||||||
// checks if config exists, if not, a config is auto generated
|
// checks if config exists, if not, a config is auto generated
|
||||||
config_api.configExistsCheck();
|
config_api.configExistsCheck();
|
||||||
|
|
||||||
if (writeConfigMode) {
|
setAndLoadConfig();
|
||||||
setAndLoadConfig();
|
|
||||||
} else {
|
|
||||||
loadConfig();
|
|
||||||
}
|
|
||||||
|
|
||||||
app.use(bodyParser.urlencoded({ extended: false }));
|
app.use(bodyParser.urlencoded({ extended: false }));
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
|
|||||||
Reference in New Issue
Block a user