mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-03 23:11:28 +03:00
Finished adding support for audio subscriptions, custom args for subscriptions, and custom output for subscription downloads
This commit is contained in:
@@ -39,8 +39,8 @@ function getJSONMp4(name, customPath, openReadPerms = false) {
|
||||
function getJSONMp3(name, customPath, openReadPerms = false) {
|
||||
var obj = null;
|
||||
if (!customPath) customPath = config_api.getConfigItem('ytdl_audio_folder_path');
|
||||
var jsonPath = customPath + name + ".info.json";
|
||||
var alternateJsonPath = customPath + name + ".mp3.info.json";
|
||||
var jsonPath = path.join(customPath, name + ".info.json");
|
||||
var alternateJsonPath = path.join(customPath, name + ".mp3.info.json");
|
||||
if (fs.existsSync(jsonPath)) {
|
||||
obj = JSON.parse(fs.readFileSync(jsonPath, 'utf8'));
|
||||
if (!is_windows && openReadPerms) fs.chmodSync(jsonPath, 0o755);
|
||||
|
||||
Reference in New Issue
Block a user