Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Get and set path from youtube-dl
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin committed Mar 31, 2018
1 parent 3349cbb commit 161ed2a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,24 @@ function parseInfo(data) {
return info;
}

/**
* Set path from youtube-dl.
*
* @param {String} path
*/
ytdl.setYtdlBinary = function setYtdlBinary(path) {
ytdlBinary = path;
}

/**
* Get path from youtube-dl.
*
* @param {String} path
*/
ytdl.getYtdlBinary = function getYtdlBinary() {
return ytdlBinary;
}


/**
* Gets info from a video.
Expand Down Expand Up @@ -417,4 +435,4 @@ ytdl.getExtractors = function getExtractors(descriptions, options, callback) {

var args = descriptions ? ['--extractor-descriptions'] : ['--list-extractors'];
call(null, args, null, options, callback);
};
};

0 comments on commit 161ed2a

Please sign in to comment.