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

Commit

Permalink
fix when not giving args to getInfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Jun 14, 2014
1 parent ac48c37 commit 794617d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ ytdl.getInfo = function(url, args, options, callback) {
} else if (typeof args === 'function') {
callback = args;
options = {};
args = [];
}
var defaultArgs = [
'--get-id',
Expand Down

0 comments on commit 794617d

Please sign in to comment.