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

Commit

Permalink
expose call function with empty default args as exec
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Sep 24, 2014
1 parent 58558d8 commit e12b538
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ var ytdl = module.exports = function(url, args, options) {
};


/**
* Calls youtube-dl with some arguments and the `callback`
* gets called with the output.
*
* @param {String} url
* @param {Array.<String>} args
* @param {Object} options
* @param {Function(!Error, String)} callback
*/
ytdl.exec = function (url, args, options, callback) {
return call(url, [], args, options, callback);
}


/**
* Calls youtube-dl with some arguments and the `callback`
* gets called with the output.
Expand Down

0 comments on commit e12b538

Please sign in to comment.