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

Commit

Permalink
make args passed to youtube-dl actually optional
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Dec 23, 2014
1 parent 8d548eb commit 413d0ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ ytdl.exec = function (url, args, options, callback) {
* @param {Function(!Error, String)} callback
*/
function call(video, args1, args2, options, callback) {
var args = args1.concat(util.parseOpts(args2));
var args = args1;
if (args2) {
args = args.concat(util.parseOpts(args2));
}
options = options || {};

if (isYouTubeRegex.test(video)) {
Expand Down

0 comments on commit 413d0ab

Please sign in to comment.