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

Commit

Permalink
check for --format too
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed May 7, 2015
1 parent 7a078d3 commit 08ca167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ ytdl.getInfo = function(url, args, options, callback) {
args = [];
}
var defaultArgs = ['--dump-json'];
if (!args || args.indexOf('-f') < 0) {
if (!args || args.indexOf('-f') < 0 && args.indexOf('--format') < 0) {
defaultArgs.push('-f');
defaultArgs.push('best');
}
Expand Down

0 comments on commit 08ca167

Please sign in to comment.