Skip to content

Commit

Permalink
show audio columns in --info
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Mar 17, 2014
1 parent dfe4864 commit 2ac1d10
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions bin/ytdl.js
Expand Up @@ -133,9 +133,21 @@ if (opts.info) {

printVideoInfo(info);

info.formats.forEach(function(format) {
format['video enc'] = format.encoding;
format['audio bitrate'] = format.audioBitrate;
format['audio enc'] = format.audioEncoding;
});
console.log('formats:'.grey.bold);
var cols = ['itag', 'container', 'resolution', 'encoding'];
var colors = ['green', 'blue', 'green', 'blue'];
var cols = [
'itag',
'container',
'resolution',
'video enc',
'audio bitrate',
'audio enc'
];
var colors = ['green', 'blue', 'green', 'blue', 'green', 'blue'];
console.log(cliff.stringifyObjectRows(info.formats, cols, colors));
ytdl.cache.die();
});
Expand Down

0 comments on commit 2ac1d10

Please sign in to comment.