Skip to content

Commit

Permalink
fix: fix showing correct format size
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Jul 23, 2020
1 parent d3dd2fc commit 13e6a37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ytdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ if (opts.infoJson) {

if (sizeUnknown) {
printLiveVideoSize();
} else if (format.clen) {
printVideoSize(parseInt(format.clen, 10));
} else if (format.contentLength) {
printVideoSize(parseInt(format.contentLength, 10));
} else {
readStream.once('response', (res) => {
if (res.headers['content-length']) {
Expand Down

0 comments on commit 13e6a37

Please sign in to comment.