mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 08:31:29 +03:00
implemented global custom args functionality
fixed bad logic in settings
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
const fs = require('fs');
|
||||
|
||||
let CONFIG_ITEMS = require('./consts.js')['CONFIG_ITEMS'];
|
||||
const debugMode = process.env.YTDL_MODE === 'debug';
|
||||
|
||||
let configPath = 'config/default.json';
|
||||
let configPath = debugMode ? '../src/assets/default.json' : 'config/default.json';
|
||||
|
||||
// https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key
|
||||
Object.byString = function(o, s) {
|
||||
|
||||
Reference in New Issue
Block a user