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

Commit

Permalink
Merge pull request #196 from clpacheco90/master
Browse files Browse the repository at this point in the history
Setting a path from youtube-dl
  • Loading branch information
Kikobeats committed Dec 12, 2018
2 parents 013f43e + 05f8f62 commit 80fa5e4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/youtube-dl.js
Expand Up @@ -281,6 +281,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

0 comments on commit 80fa5e4

Please sign in to comment.