Skip to content

Commit

Permalink
feat: print itag when downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Apr 7, 2020
1 parent 97460f2 commit a2a55dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/ytdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,12 @@ if (opts.infoJson) {
// Print information about the video if not streaming to stdout.
printVideoInfo(info, format.live);

// Print format information.
console.log(label('itag: ') + format.itag);
console.log(label('container: ') + format.container);
if (format.qualityLabel) {
console.log(label('quality: ') + format.qualityLabel);
console.log(label('bitrate: ') + util.toHumanSize(format.bitrate));
console.log(label('video bitrate: ') + util.toHumanSize(format.bitrate));
}
if (format.audioBitrate) {
console.log(label('audio bitrate: ') + format.audioBitrate + 'KB');
Expand Down

0 comments on commit a2a55dc

Please sign in to comment.